Subscript out of range

Results 1 to 2 of 2

Thread: Subscript out of range

  1. #1
    Join Date
    Dec 1969

    Default Subscript out of range

    I am writing an active x and keep getting an error &#039subscript out of range&#039 I thought it migh tbe something like an integer overshooting 32000 so i just dim&#039d all the variables but I still get the message - does anyone know exactly what this message is??<BR>cheers ;)

  2. #2
    rajit Guest

    Default RE: Subscript out of range

    This error is a result of logical conditional error. You have a loop (DO or FOR or ....) in your code and you are trying to read so many items, but incidentally you are trying to access items past the real count (number of items). Hence the error "Subscript out of range". Also check if you are working with arrays and that you are properly redim&#039ing the arrays to accomidate all the items. This could also happen if you are reading a file past EOF.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts