LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How to make a ComboBox dependent on another?

I am trying to set a ComboBox to list values dependent, on what was
selected on an earlier ComboBox.

Private Sub ComboBox2_Change()
Select Case Comboxbox1.ListIndex
Case 0 'Operator Interface
ComboBox2.AddItem "Pushbutton" 'ListIndex = 0
ComboBox2.AddItem "Selector Switch" 'ListIndex = 1
ComboBox2.AddItem "Cam Switch" 'ListIndex = 2
ComboBox2.AddItem "Foot Switch" 'ListIndex = 3
End Select
End Sub

But it doesn't seem to be happy with my approach, I get Run-Time error
'424': Object Required.

Am I missing something simple, or is this approach incorrect, is there
another way?

TIA

 
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
How do I make other cells dependent on my drop down list? mae1778 Excel Discussion (Misc queries) 1 July 29th 05 04:25 PM
How can I make a cell a certain color dependent on number value? Sue Excel Discussion (Misc queries) 1 June 2nd 05 06:41 PM
Dependent combobox Patty2005[_2_] Excel Programming 2 August 5th 04 02:32 AM
Help me make a function dependent on current sheet?!? pholzmann Excel Programming 3 January 7th 04 02:30 PM
how to make macro not dependent on datafile which has date as its part. haisat Excel Programming 2 October 18th 03 12:14 PM


All times are GMT +1. The time now is 09:32 AM.

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"