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: 54
Default Combo box help

I have three comboboxes that are on a VBA UserForm. Each gets data from
Dynamic Named Ranges (DNR) that are located on a hidden worksheet:

For Each cOffNam In ws.Range("NameList")
With Me.cboOffNam
.AddItem cOffNam.Value
.List(.ListCount - 1, 1) = cOffNam.Offset(0, 1).Value
End With
Next cOffNam

for all three boxes (cboOffName = "NameList" cboOffBadge =
"BadgeList", etc.) I am currently using "Case" statements but when the
information in the DNR change, I have to manually edit the code. Is
there a way to perform the "Case" function using DNR? (I have a
separate UserForm that edits the DNR, so this "new" code would simplify
things tremendously!!!

I am able to populate each box from these dynamic ranges, but would
like to be able to click one box and populate the other two with the
matching information. (Use cboOffName to populate the other two, OR
click cboOffBadge to populate the other two, etc.)

Thank you in advance!!!

 
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
linking a form combo box... results from the combo box to another Trey Excel Discussion (Misc queries) 1 July 15th 07 01:58 AM
Excel VBA Combo Box Populating dependent on other combo box choices ikabodred Excel Programming 1 March 15th 06 03:16 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


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

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"