Hello,
I am trying to loop through sheets and combine columns of data into a variant
Obviously the code above would just replace the variant data with the new data from the next sheet. My question is, how can I add data to the variant without overwriting it?
Thank you.
I am trying to loop through sheets and combine columns of data into a variant
Code:
dim sSheet(3) as string
dim mgTickers() as variant
dim x as integer
Do
Sheets(sSheet(x)).Select
'variant
With ActiveSheet
mgTickers() = Range(.Cells(22, 1), .Cells(.Rows.Count, 1).End(xlDown)).Value
End With
x = x + 1
Loop Until x > 3
Obviously the code above would just replace the variant data with the new data from the next sheet. My question is, how can I add data to the variant without overwriting it?
Thank you.