Hi I am new to VBA but want to do something seemingly simple, however I cannot figure it out.
I would like to link multiple cells to a textbox and have the values be on different lines. Ex. A1 = Blue; B1 = Red; C1 = Yellow
I want to have a textbox return:
Red
Blue
Yellow
I cannot find an answer to this anywhere.
The code I have now is:
Sub Macro2()
' Macro2 Macro
ActiveSheet.Shapes.Range(Array("TextBox 2")).Select
Selection.Formula = "=$A$1"
End Sub
This returns the value of A1 into the text box, but I also need the value of B1 and C1.
Any help would be appreciated. Thanks
Update:
Elbert Villarreal's answer solved my problem, but I have one last question.
I have multiple rows that I would like to do this for (A2, A3, A4). Is there a way to do a loop for these different rows of data?