Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating new option for excel program

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am a first time VB user. I am trying to incorporate and new product into an existing excel program.
The error I recieve when running the macro is Subscriot out of range. What does that mean?


This is the code which it highlights when debugging.

Code:
ElseIf OptionButton16.Value = True Then
Worksheets("CBRB").Select
This is the same as all of the other option button.
Please help!
 
"Subscript out of range" basically means that in a collection of the same type of object you are trying to access one outside the .Count value. In your 2 lines of code this could refer to either the OptionButtons() or Worksheets() collections. I would guess, for example, that you do not have an option button called "OptionButton16". Regards
BrianB
** Let us know if you get something that works !
================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top