There is any possibility to store an entire column in a string variable? I need that variable as a string and not range type. I mean, something like this:
Dim myStrVar As String
myStrVar = Sheets("Sheet1").Range("A:A")
MsgBox myStrVar
This code error is: Type mismatch I want to specify that my column contains only text (string type).
If possible, how can I do this?? Thank you!
Rangeis a series of cells with values so it makes sense you cant just assign them to a string since there is more than one (possibly over a million cells in 1 column depending on you version of Excel). Are you trying to concatenate the values of every cell?