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

Can I associate one or more Comboboxes to another Combobox?

I have several on a Userform, that I want to be able to inpu
information into one and have the others that are related to it, onl
drop down the related information. (I.E. input a part number and onl
have the related stock numbers show in the associated Combobox.)

Right now, my Comboboxes drop down everything in the list

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Associating Comboboxes

It can be done, but it all has to be manually coded, nothing automatic. You
need to have some way of identifying the selection from combo1 with a
number of ranges to select from for combo 2, and so on. It can get very
messy the more combos in the hierarchy. I did a 4 combo linked app in
JavaScript once, and that was horrible, whereas 2 is relatively simple.

--

HTH

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

"Thunder5 " wrote in message
...
Can I associate one or more Comboboxes to another Combobox?

I have several on a Userform, that I want to be able to input
information into one and have the others that are related to it, only
drop down the related information. (I.E. input a part number and only
have the related stock numbers show in the associated Combobox.)

Right now, my Comboboxes drop down everything in the list.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Associating Comboboxes

Please help !
I have 34 users & I need to assign for each user a separate no. in cel
A2. The format of the number need to be with 2 letters assigned t
individual & leading with 0 (zero) if the number is below 100 (e.g., i
cell A2 is entered with 22, its value to be ar022 & not ar22) else wit
the no.(say, ar122).
Secondly, the writing of code will be very big if I have to write fo
34 cases. How do I make it simple?

Select Case Application.UserName
Case "X1"
If Range("A2").Value < 100 Then
Range("A2").NumberFormat = """ar0""0"
Else: Range("A2").NumberFormat="""ar""0"
End If
Case "X2"
If Range("A2").Value < 100 Then
Range("A2").NumberFormat = """br0""0"
Else: Range("A2").NumberFormat="""br""0"
End If
Case "X3"
If Range("A2").Value < 100 Then
Range("A2").NumberFormat = """cr0""0"
Else: Range("A2").NumberFormat="""cr""0"
End If
Case n....

End Select
:

--
Message posted from http://www.ExcelForum.com

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
Associating a Name with a Number Vbgooroo Excel Discussion (Misc queries) 5 September 29th 07 03:33 AM
Associating Tab Names to Cells Slave2Six Excel Discussion (Misc queries) 2 August 7th 06 09:31 PM
Associating highest value with name mailrail Excel Discussion (Misc queries) 5 July 30th 06 06:57 PM
Associating a macro with a button Shawn Weidmann Excel Programming 2 October 27th 03 04:55 PM
Associating one array with another Michael J. Malinsky Excel Programming 0 July 8th 03 03:11 PM


All times are GMT +1. The time now is 04:13 PM.

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"