hello
i am trying to declare a dynamic array with 3 columns. within a for loop i would like to add to the array so it is unknown how many record elements will be in the array.
here is what i have so far which is not working
I never get a message box
Any help is GREATLY appreciated!
i am trying to declare a dynamic array with 3 columns. within a for loop i would like to add to the array so it is unknown how many record elements will be in the array.
here is what i have so far which is not working
Code:
'declare array
Dim final_array() As String
'add records to the array
ReDim final_array(1 To 3, 1 To UBound(final_array) + 1)
final_array(0, UBound(final_array) - 1) = Current_Sheet
final_array(1, UBound(final_array) - 1) = Current_Ticker
final_array(2, UBound(final_array) - 1) = Current_PCT_Change
'test array
MsgBox (UBound(final_array))
MsgBox final_array(1, 1)
I never get a message box
Any help is GREATLY appreciated!