Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combobox programming

Hi,

I want to do the following:

Table 1 (Configuration):

project1
action1
action2
action3

project2
action6
action7
action8


Table 2:

I want to have two comboboxes. The first should be used to choose one
of the projects. If a project is chosen, the actions of this project
should be in a second combobox.

Is this possible??

Thanks, Christian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Combobox programming

Hi Christian
Make the ListFillRange for combobox 1 reflect the cells containing the
project names then use the following code to select the ListFillRange for
combobox2 depending on the selection in box1

Private Sub ComboBox1_Change()
If ComboBox1.Text = "project 1" Then
ComboBox2.ListFillRange = "j1:j3"
ComboBox2.Text = ""
Else
If ComboBox1.Text = "project 2" Then
ComboBox2.ListFillRange = "k1:k3"
ComboBox2.Text = ""
Else: ComboBox2.Text = "Select project first"
End If
End If
End Sub

Hope this helps

Ian

"Christian Reusch" wrote in message
om...
Hi,

I want to do the following:

Table 1 (Configuration):

project1
action1
action2
action3

project2
action6
action7
action8


Table 2:

I want to have two comboboxes. The first should be used to choose one
of the projects. If a project is chosen, the actions of this project
should be in a second combobox.

Is this possible??

Thanks, Christian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Combobox programming

Christian,

I have a workbook example of how to achieve this sort of dependent combobox.

Mail me if you want a copy.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Christian Reusch" wrote in message
om...
Hi,

I want to do the following:

Table 1 (Configuration):

project1
action1
action2
action3

project2
action6
action7
action8


Table 2:

I want to have two comboboxes. The first should be used to choose one
of the projects. If a project is chosen, the actions of this project
should be in a second combobox.

Is this possible??

Thanks, Christian



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
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
vba programming biker man Excel Discussion (Misc queries) 1 August 28th 07 04:02 PM
Programming help BB Excel Discussion (Misc queries) 3 December 5th 05 01:09 AM
Programming IDE JS[_4_] Excel Programming 1 November 20th 03 09:11 AM
Help With Simple Combobox Programming MAB[_3_] Excel Programming 1 August 27th 03 04:23 PM


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