Hello all I am getting an error
Run-time error '9':
Subscript out of range
with the following code
Public newarray() As String
Sub test1()
Dim int1 As Integer
int1 = 0
Do
int1 = int1 + 1
newarray(int1) = int1 * 5
Loop Until int1 > 3
End Sub
when i decare the array
Public newarray(4) As string
it works, however I wish to declare a dynamic array. Please help. Thank you.