|
Hi,
I want to add Validation to a worksheet column from a script. I have created a list of valid entries in cells V1 to V31 in the active worksheet. I get a compile/syntax error on the following statement:
pm.ActiveSheet.Columns(5).Validation.Add pmValidateList,,,V1:V31,
According to the Help file for the Validation object, the only required field for the 'pmValidateList' validation type is a "list of values, separated by the system list separator, or a cell reference" in the 'Formula1' parameter. Can you tell me what I am doing wrong and give me an example of the correct 'Validation.Add' syntax?
Thanks!
|