Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform Combo box to mimick Worksheet Cell validation list range.
Hi Everyone,
Is there a method which tells a Userform Combo box to mimick active Worksheet Cell validation list range. My worksheet contains data validation lists in various places, I have designed a userform combo box, in order to 'quick search', but rather than hard code the list range, I need the userform combo box to mirror the data validation list range of the active cell. Thanks. LaDdIe |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform Combo box to mimick Worksheet Cell validation list range.
Add the code to the initial function of the userform.
ListRange = Range("A1").Validation.Formula1 'remove equal sign ListRange = Mid(ListRange, 2) UserForm1.ListBox1.RowSource = ListRange "LaDdIe" wrote: Hi Everyone, Is there a method which tells a Userform Combo box to mimick active Worksheet Cell validation list range. My worksheet contains data validation lists in various places, I have designed a userform combo box, in order to 'quick search', but rather than hard code the list range, I need the userform combo box to mirror the data validation list range of the active cell. Thanks. LaDdIe |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform Combo box to mimick Worksheet Cell validation list ra
Thanks for your prompt reply, its just the solution I was looking for.
"Joel" wrote: Add the code to the initial function of the userform. ListRange = Range("A1").Validation.Formula1 'remove equal sign ListRange = Mid(ListRange, 2) UserForm1.ListBox1.RowSource = ListRange "LaDdIe" wrote: Hi Everyone, Is there a method which tells a Userform Combo box to mimick active Worksheet Cell validation list range. My worksheet contains data validation lists in various places, I have designed a userform combo box, in order to 'quick search', but rather than hard code the list range, I need the userform combo box to mirror the data validation list range of the active cell. Thanks. LaDdIe |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
validation list or combo box dependant on cell value | Excel Worksheet Functions | |||
Userform Combo box list | Excel Programming | |||
Cell value as named range for validation list | Excel Programming | |||
Using a data validation list to look up a defined named range in another worksheet | Charts and Charting in Excel | |||
cell validation list reference to a different worksheet | Excel Programming |