Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jenz21985
 
Posts: n/a
Default 9: Subscript out of range


Wonder if any one can help.

I know very little about excell & macros & I have been given a
spreadsheet to update which just happens to be full of them.

At present I have one worksheet called MR600. In that I have a
Month/year button which i press & the whole spreadsheet updates with
new dates etc.

The thing is I need to have 30 of the same worksheets all with
different names but as soon as I rename the worksheet & try to click on
Month I get an error - 9: Subscript out of range.

Can anyone tell me what Im doing wrong or what & where & how I would
update it to work?

Thanks



--
jenz21985
------------------------------------------------------------------------
jenz21985's Profile: http://www.excelforum.com/member.php...o&userid=34109
View this thread: http://www.excelforum.com/showthread...hreadid=539228

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default 9: Subscript out of range

I've seen that message occur when a program expects a number to be
within a certain range but the number is outside that range because of
user inputs or something. Do you mind posting the code? It will be
easier to troubleshoot.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default 9: Subscript out of range

Subscript out of range will mean that your code is looking for something that
doesn't belong to that collection.

For instance, if you have code that looks like:

dim wks as worksheet
set wks = worksheets("sheet1")

If you don't have a worksheet named Sheet1, then you'll get this error. It
could be a simple misspelling or something worse.



jenz21985 wrote:

Wonder if any one can help.

I know very little about excell & macros & I have been given a
spreadsheet to update which just happens to be full of them.

At present I have one worksheet called MR600. In that I have a
Month/year button which i press & the whole spreadsheet updates with
new dates etc.

The thing is I need to have 30 of the same worksheets all with
different names but as soon as I rename the worksheet & try to click on
Month I get an error - 9: Subscript out of range.

Can anyone tell me what Im doing wrong or what & where & how I would
update it to work?

Thanks


--
jenz21985
------------------------------------------------------------------------
jenz21985's Profile: http://www.excelforum.com/member.php...o&userid=34109
View this thread: http://www.excelforum.com/showthread...hreadid=539228


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
jenz21985
 
Posts: n/a
Default 9: Subscript out of range


Not sure where to find the code

Can you point me in the direction

Thanks


--
jenz21985
------------------------------------------------------------------------
jenz21985's Profile: http://www.excelforum.com/member.php...o&userid=34109
View this thread: http://www.excelforum.com/showthread...hreadid=539228

  #5   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default 9: Subscript out of range

"jenz21985" wrote
in message ...

Not sure where to find the code

Can you point me in the direction


Try:
Tools/ Macro/ Macros ...
--
David Biddulph




  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default 9: Subscript out of range

Right-click on the Month/Year button, click Assign Macro, click Edit.
The VBA editor will appear, and the code associated with the Month/Year
button will be showing: please copy everything from the word Sub to the
words End Sub (inclusive), and post it. Review it first, of course, to
make sure it does not somehow divulge sensitive information.

  #7   Report Post  
Posted to microsoft.public.excel.misc
jenz21985
 
Posts: n/a
Default 9: Subscript out of range


When I click on tools, maro, macros it just comes up with an empty box
asking me to type in the macro name.

I cannot right click on the month/year button.

Any other suggestions




--
jenz21985
------------------------------------------------------------------------
jenz21985's Profile: http://www.excelforum.com/member.php...o&userid=34109
View this thread: http://www.excelforum.com/showthread...hreadid=539228

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
VLookup Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
Run Time Error 9 (Subscript out of Range) for XLA file ExcelMonkey Excel Discussion (Misc queries) 3 October 5th 05 03:34 PM
How to Select a relative range with Using "Find" and Offset() Dennis Excel Discussion (Misc queries) 7 July 27th 05 03:57 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 1 April 7th 05 04:31 PM


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

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

About Us

"It's about Microsoft Excel"