Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need to use answer from combobox selection as listfillrange for s.

I am creating a complex spreadsheed and need to use the answer from the first
combobox as the listfillrange answer on a second combobox. This would allow
users of the sheet to select a manufacturer and then the second combobox
would let them select the model of equipment made by that manufacturer. It
will not accept the answer cell text as the listfillrange entry. It makes
that answer cell itself as the listfillrange to be used in the dropdown list.
Please help if you have a solution.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Need to use answer from combobox selection as listfillrange for s.

Not sure exactly what you are trying to do, but believe the below will at
least conceptually get u there.

Private Sub ComboBox1_DropButtonClick()

ComboBox1.AddItem "aaa", ListIndex = 0
ComboBox1.AddItem "bbb", ListIndex = 1
ComboBox1.AddItem "ccc", ListIndex = 2

End Sub
Private Sub ComboBox2_DropButtonClick()

ComboBox2.AddItem "fred", ListIndex = 0
ComboBox2.AddItem "frederic", ListIndex = 1
ComboBox2.AddItem "fredy", ListIndex = 2

If ComboBox1.Value < "" Then
Dim val As String
val = ComboBox1.Value
ComboBox2.AddItem val
End If

End Sub

regards,


"ModrusAdvillion" wrote:

I am creating a complex spreadsheed and need to use the answer from the first
combobox as the listfillrange answer on a second combobox. This would allow
users of the sheet to select a manufacturer and then the second combobox
would let them select the model of equipment made by that manufacturer. It
will not accept the answer cell text as the listfillrange entry. It makes
that answer cell itself as the listfillrange to be used in the dropdown list.
Please help if you have a solution.

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
combobox listfillrange network Helmut Excel Worksheet Functions 0 April 22nd 09 03:27 PM
Transpose technique not populating ListFillRange of ActiveX combobox JimC[_2_] Excel Discussion (Misc queries) 2 September 6th 08 01:07 PM
ComboBox ListFillRange Stefi Excel Discussion (Misc queries) 14 April 21st 08 12:55 PM
Strange problem with a combobox and ListFillRange teddyk Excel Discussion (Misc queries) 1 August 7th 06 09:16 PM
ComboBox - Changing ListFillRange [email protected] Excel Programming 1 May 10th 04 06:12 PM


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