Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Newbie: Problem with re-using a combo-box in userform

Run-time error '9':
Subscript out of range

Highlights within the Private Sub cmdOK_Click():
Worksheets(Me.ComboBox1.Value).Activate



It is telling you that the value of ComboBox1 does not equate to a
recognizable object. If you step through the code, using F8 key, to check
the code line by line your tool tips popup will show the values of your
objects and variables when you mouse-over them. Set a breakpoint on the
first line of the code after the title line and then click the button to
initiate the code. Then you can use F8 to step through the rest of the macro.

I will take a closer look at your other problem and see if I can find
something that I might have overlooked initially. Right now, I don't
understand why it is not working with the changes I gave you.



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
Combo boxes in userform auto drop down problem [email protected] Excel Programming 3 March 13th 08 02:43 PM
Newbie question: How to iterate over combo boxes on a worksheet Mark Shirley Excel Programming 0 November 2nd 04 05:28 AM
problem with populating a combo box on a userform JulieD Excel Programming 0 September 7th 04 03:42 PM
Newbie : Combo box on cell ? RM[_2_] Excel Programming 2 October 26th 03 06:37 PM
newbie userform problem Kevin Excel Programming 1 August 5th 03 12:25 AM


All times are GMT +1. The time now is 09:57 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"