Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Casey, try this:
'----------------------------------------------------- ' 'TARGET is the cell you want to add validation to ' 'LISTRANGE are the cells in column CC that contain _ the list of names that you want the TARGET _ to be limited to ' '----------------------------------------------------- Sub AddValidation(Target As Range, ListRange As Range) Dim strAddress As String strAddress = "=" & ListRange.Address With Target.Validation .Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, _ Formula1:=strAddress .IgnoreBlank = True .InCellDropdown = True .ShowInput = True .ShowError = True End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
validating | Excel Discussion (Misc queries) | |||
validating outside of Excel | Excel Discussion (Misc queries) | |||
validating | Excel Worksheet Functions | |||
Validating | Excel Discussion (Misc queries) | |||
Validating Dates | Excel Programming |