I would say I am not a beginner but also not an expert. I try to dimension things properly and use dynamic arrays when appropriate. Just when I think I have things figured out I get a "Subscrit out of range" error and the reason is not very clear. For example, I get an error from the code below. There are lots of reasons one might get the "subscript range" error without a clear reason. It would help us mid-level programmers out a lot if some of the more experienced programmers could contribute to this string by citing intances they have come across where this error message has come up where the reason isn't immediately obvious. I, for one, would be very grateful.
Sub test()
Dim myarray()
Dim i As Integer
For i = 1 To 100
myarray(i) = i
Next i
End Sub
Sub test()
Dim myarray()
Dim i As Integer
For i = 1 To 100
myarray(i) = i
Next i
End Sub