Tejas Kore
Board Regular
- Joined
- Nov 2, 2017
- Messages
- 72
- Office Version
- 365
- Platform
- Windows
Hi Friends,
I am facing a error "Subscript out of range".
I am trying to add array names to dictionary.
column_arr_1 = Array("X1", "Y2")
column_arr_2 = Array("Z3", "A1")
column_arr_3 = Array("B1", "C1")
column_arr = Array(column_arr_1, column_arr_2, column_arr_3)
For i = 1 To UBound(column_arr) - LBound(column_arr) + 1
a.Add i, column_arr(i)
Next i
I am unable to understand where I am commiting the mistake ?
Is there any alternative to do this ?
I am facing a error "Subscript out of range".
I am trying to add array names to dictionary.
column_arr_1 = Array("X1", "Y2")
column_arr_2 = Array("Z3", "A1")
column_arr_3 = Array("B1", "C1")
column_arr = Array(column_arr_1, column_arr_2, column_arr_3)
For i = 1 To UBound(column_arr) - LBound(column_arr) + 1
a.Add i, column_arr(i)
Next i
I am unable to understand where I am commiting the mistake ?
Is there any alternative to do this ?