Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Runtime Error '9' Subscript out of range HELP

Im having this error pop up at such a random time in my app. I have a
combo box with 13 items listed. I have a onclick change event for the
combo box and every index works except for the 8th index. After
clicking that index, the runtime Error pops up. Anyone have any clue
what this may be?

The onclick change event is as follows:
upcName is a string and cboUPCS is the name of the combo box

upcName = cboUPCS
Worksheets(upcName).Activate

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Runtime Error '9' Subscript out of range HELP

It sounds like cboUPCS doesn't have a value that corresponds to a worksheet
name.

Maybe extra spaces?

Brandon Johnson wrote:

Im having this error pop up at such a random time in my app. I have a
combo box with 13 items listed. I have a onclick change event for the
combo box and every index works except for the 8th index. After
clicking that index, the runtime Error pops up. Anyone have any clue
what this may be?

The onclick change event is as follows:
upcName is a string and cboUPCS is the name of the combo box

upcName = cboUPCS
Worksheets(upcName).Activate


--

Dave Peterson
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
runtime error 9 subscript out of range Nastack628 Excel Worksheet Functions 1 February 2nd 12 08:41 PM
Runtime Error 9, Subscript Out of Range. When linking between word Darren H Excel Discussion (Misc queries) 0 July 26th 07 04:34 PM
Runtime Error - Subscript out of range despite On Error statement DoctorG Excel Programming 3 July 28th 06 03:56 PM
Getting Excel Runtime Error 9: Subscript out of range Ph8te Excel Programming 6 July 14th 06 06:12 AM
"Subscript out of range Runtime Error 9" teresa Excel Programming 1 December 14th 04 10:22 PM


All times are GMT +1. The time now is 07:15 PM.

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"