Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
FIrst, you're missing an END IF in this code
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("A1")) Is Nothing Then Call AddValidation Else Exit Sub END IF End Sub --- Next problem Sub AddValidation () If Range("D1") < "" Then With rOpt1Choices.Validation '<~~~what is rOpt1Choices? ..Delete ..Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _ xlBetween, Formula1:=Range("D1") ..IgnoreBlank = True ..InCellDropdown = True ..InputTitle = "" ..ErrorTitle = "Invalid Entry" ..InputMessage = "" ..ErrorMessage = "Please make a choice from the drop down list" ..ShowInput = True ..ShowError = True End With End If End Sub " wrote: I really need this to work for me and am hoping for a response so I am going to keep posting to this until I get a response. Great and many thanks to anyone who has any input or work arounds or anything. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Load Error | Excel Discussion (Misc queries) | |||
Data Validation Error | Excel Worksheet Functions | |||
VBA validation & error reporting | Excel Programming | |||
validation error, urgent plz help | Excel Worksheet Functions | |||
Data Validation Error! | Excel Programming |