Hello,
I have data in a range, let´s say A1:W1 and I have textbox or label (just to show information). I now want the the data from the range to show in my textbox the same as on my worksheet (from left to right). I tried using an array put the input method to the textbox won´t work.
Please help to solve this easy task.
Best regards
pulpo
I have data in a range, let´s say A1:W1 and I have textbox or label (just to show information). I now want the the data from the range to show in my textbox the same as on my worksheet (from left to right). I tried using an array put the input method to the textbox won´t work.
VBA Code:
Sub arr()
Dim myarr As Variant
Dim i As Integer
myarr = Sheets(1).Range("A1:W1").Value
With TextBox1
For i = LBound(myarr) To UBound(myarr)
.Text = .Text & myarr(i)
Next
End With
End Sub
Please help to solve this easy task.
Best regards
pulpo