Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to write a macro that resets the range used by
a Data Validation input box in a cell. I have the validation set on a range of cells and elsewhere in the sheet there is the list of valid input. I change the list and need to programmatically change the validated cells, but the following code doesn't seem to accept a named range With Selection.Validation .Delete .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _ xlBetween, Formula1:="=$D$60:$D$83" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With I need to be able to change the abolsute range reference following Formula1:= Any pointers much appreciated. Murray |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reference the 2nd and 3rd highest in range. | Excel Worksheet Functions | |||
automatic range - named range give me circular reference... | Excel Discussion (Misc queries) | |||
Using a NAME as a reference in another range | Excel Discussion (Misc queries) | |||
Subscript out of Range on Range reference | Excel Programming | |||
Reference to a range in another workbook | Excel Programming |