Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Subscript out of range"?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi guys, I'm trying to declare a counter variable but it's giving me a "Subscript out of range : '0'" error msg, here's the portion of my code
------------------------------
1 Dim intCounter
2 intCounter = 0
------------------------------
the error is pointing to the 2nd line of code above.
What does the error mean? and how can I fix it?
 
p|nky,

I tried your code on my machine without error. It looks fine. Can you show more of your code?

fengshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top