Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have data validation (allows values in a list) set in column A (except for
A1:A5). I want to change the validation list dynamically because the values i'm interested in will change as a query is refreshed. I've tried creating a string variable that captures the range (set myRange = Range(("AB2"), Selection.End(xlDown))) and using that to modify the validation: Range("A:A").Validation.Modify xlValidateList, xlValidAlertStop, , crsRange but i get this error - "Application-defined or object-defined error". I get the same error if i try to create myRange as a string variable, too. The range i want to use for the validation list will change each time a person uses the file, so i need to get this to work. Any advice? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I Change Displayed Data Through Data Validation? | Excel Discussion (Misc queries) | |||
change the data validation to 'any value if 'other' is selected | Excel Discussion (Misc queries) | |||
How does Data Validation change with a formula change? | Excel Worksheet Functions | |||
Add/Change Data validation list | Excel Programming | |||
Data Validation & ControlSource & Change event | Excel Programming |