Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I uses records macro from Excel to add a new validation.
I copied the code generated by macro to my function, but it fails. The code is following: For i = 19 To iRow For J = 7 To iCol With Sheets(wsDestination).Cells(i, J).Validation .Delete .Add Type:=xlValidateWholeNumber, AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, Formula1:="0", Formula2:="100" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With Next J Next i I got run time erro 1004 "Unable to get large property of worksheetfunction class" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macrs with Validation Rules | Excel Worksheet Functions | |||
making 2 (or more) validation rules for each cell | Excel Discussion (Misc queries) | |||
how do I set up a validation rules with two data rules | Excel Worksheet Functions | |||
Data Validation Rules | Excel Worksheet Functions | |||
Exceptions to Validation Rules | Excel Worksheet Functions |