Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get an error on the 'add' line of the following code:
With rng.Validation .Delete .Add Type:=xlValidateDecimal, AlertStyle:=xlValidAlertStop, Operator:=xlGreater, Formula1:="-9999999999999999" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "Error" .InputMessage = "" .ErrorMessage = "Must be an Amount." .ShowInput = True .ShowError = True End With I set rng to a range on the worksheet. What can I look for that would be causing this error? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works for me. The only issues MIGHT be...
1) I don't see you declaring rng as Range 2) -9999999999999999 seems a bit excessive. -- Hope this helps. Thanks in advance for your feedback. Gary Brown "ranswrt" wrote: I get an error on the 'add' line of the following code: With rng.Validation .Delete .Add Type:=xlValidateDecimal, AlertStyle:=xlValidAlertStop, Operator:=xlGreater, Formula1:="-9999999999999999" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "Error" .InputMessage = "" .ErrorMessage = "Must be an Amount." .ShowInput = True .ShowError = True End With I set rng to a range on the worksheet. What can I look for that would be causing this error? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Object error | Excel Programming | |||
Validation Error - Please Help!!! | Excel Programming | |||
trap error in validation | Excel Programming | |||
validation - error mismatch | Excel Programming | |||
Data Validation Error! | Excel Programming |