PC Review


Reply
Thread Tools Rate Thread

9: Subscript out of range

 
 
jenz21985
Guest
Posts: n/a
 
      5th May 2006

Wonder if any one can help.

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

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

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

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

Thanks
:confused

--
jenz2198
-----------------------------------------------------------------------
jenz21985's Profile: http://www.excelforum.com/member.php...fo&userid=3410
View this thread: http://www.excelforum.com/showthread.php?threadid=53922

 
Reply With Quote
 
 
 
 
Dave O
Guest
Posts: n/a
 
      5th May 2006
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.

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      5th May 2006
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
 
Reply With Quote
 
jenz21985
Guest
Posts: n/a
 
      5th May 2006

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

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      5th May 2006
"jenz21985" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Not sure where to find the code
>
> Can you point me in the direction


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


 
Reply With Quote
 
Dave O
Guest
Posts: n/a
 
      5th May 2006
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.

 
Reply With Quote
 
jenz21985
Guest
Posts: n/a
 
      5th May 2006

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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscript out of range, and more John Pierce Microsoft Excel Programming 5 6th Jan 2009 03:07 AM
subscript out of range Judi Microsoft Access External Data 1 28th Aug 2008 05:48 AM
What does it mean when it say subscript out of range =?Utf-8?B?U2hhcmdvcnk=?= Microsoft Access External Data 8 1st Nov 2007 09:28 AM
Range Find got Subscript out of range =?Utf-8?B?UFQ5MTc0NQ==?= Microsoft Excel Programming 5 18th Jan 2006 11:06 PM
Re: Subscript out of Range on Range reference Tom Ogilvy Microsoft Excel Programming 0 13th Sep 2003 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 PM.