Welcome to A1vbcode gencom99. Well the main reason for a "error: run-time error '9'-- Subscript out of range" is the dimensioning of an array. If you have Dim MyArray(50) As String Then you used MyArray(51) = "Temp" You will get at error because you have dimensioned for 50 but you are trying to use 51 elements. If you had Dim MyArray() As String you would have to use ReDim before you tried to load any data into it. Oh I forgot to mension, if you post VB code in this forum it looks a lot better if you use Mark's Syntax.zip. The code looks a lot better and you have the correct VB code colours. I know I haven't used it on here because there are only 2 lines of code.
Keith
I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|