Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default what does 'Subscript Out of range' mean??



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default what does 'Subscript Out of range' mean??

Hi Gary

For example if the sheet not exist you will see this error

Sheets("dfdsf").Select


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Gary" wrote in message ...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default what does 'Subscript Out of range' mean??

Ron has given one example of when you would see that error. There are other
conditions that will generate it. Generally speaking, if you attempt to
reference a member of a collection or an array that does not exist, you will
get that error.

Another example:
Dim anyArray(1 To 100) As String
Dim myElement As String

myElement = anyArray(101) ' will generate the same error.

"Gary" wrote:




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
subscript out of range error in excell Lilivati Excel Discussion (Misc queries) 4 June 26th 06 07:15 PM
9: Subscript out of range jenz21985 Excel Discussion (Misc queries) 6 May 5th 06 03:36 PM
Subscript out of range error moglione1 Excel Discussion (Misc queries) 2 August 30th 05 01:21 PM
Run time error 9 : Subscript out of range JAtz_DA_WAY Excel Discussion (Misc queries) 6 August 29th 05 08:26 PM
Subscript out of range ... sometimes! (Same code unpredictable re Dennis Excel Discussion (Misc queries) 3 August 11th 05 02:58 PM


All times are GMT +1. The time now is 04:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"