I know below is possible -
Sub test()
Dim myArray As Variant
myArray = Sheets("Data").Range("A1:Z1").Value
End Sub
is it possible to ReDim Preserve myArray and insert a new row in one go as done above. My requirement is to make a Multidimensional dynamic array but want to insert the rows in one go.
Sub test()
Dim myArray As Variant
myArray = Sheets("Data").Range("A1:Z1").Value
End Sub
is it possible to ReDim Preserve myArray and insert a new row in one go as done above. My requirement is to make a Multidimensional dynamic array but want to insert the rows in one go.