S
Shaka215
Hello Fellow Programmers!
I am in need of some assistance with getting a text box to accept a
range of cells and put the contents of each value inside the textbox on
a seprate line...I have been messing around with some of the code and
managed to get it to work correctly however I know there is a better
code to use instead of the following...
TextBox9.Value = Range("J6") & vbLf & Range("J7") & vbLf & Range("J8")
& vbLf & Range("J9") & vbLf & Range("J10") & vbLf & Range("J11") & vbLf
& Range("J12")
My code in my dreams works like this...
TextBox9.Value = Sheet1.Range("J:J") & vbLf
vbLf would only apply to nonblank values...example below.
J1 = Value
NEW LINE (vbLf)
J2 = Value
NEW LINE (vbLf)
J3 = Empty
No Line
Thanks! Hope to get some feedback...
-Todd
I am in need of some assistance with getting a text box to accept a
range of cells and put the contents of each value inside the textbox on
a seprate line...I have been messing around with some of the code and
managed to get it to work correctly however I know there is a better
code to use instead of the following...
TextBox9.Value = Range("J6") & vbLf & Range("J7") & vbLf & Range("J8")
& vbLf & Range("J9") & vbLf & Range("J10") & vbLf & Range("J11") & vbLf
& Range("J12")
My code in my dreams works like this...
TextBox9.Value = Sheet1.Range("J:J") & vbLf
vbLf would only apply to nonblank values...example below.
J1 = Value
NEW LINE (vbLf)
J2 = Value
NEW LINE (vbLf)
J3 = Empty
No Line
Thanks! Hope to get some feedback...
-Todd