R
Remco
Dear all,
I have a problem with a macro which I have recorded in Excel. The macro
comes with an error in running the recorded script. This error is:
Run-time error '1004': Application-defined of object-defined error.
This is the VBA-coding which has the problem:
Range("A12").Validation _
.Modify xlValidateCustom,
Formula1:="=AND(COUNTIF($A$11:$A$52;$A12)<2;VLOOKUP($A12;PRODUCTS;3;FALSE)=""RED"")"
Momentarily the cell has the same validation, only the Vlookup has to
match "YELLOW". This rule has been manually entered and works correct.
When the cell validation is changed manually into "RED", there is also
no problem.
Only the funny part is, when I record this change and re-run it, VBA
shows the above mentioned error.
I have been trying to change this little script, but I still did not
manage to make it run. Can someone help me with this issue?
Who can help me on this subject?
Thanks in advance.
I have a problem with a macro which I have recorded in Excel. The macro
comes with an error in running the recorded script. This error is:
Run-time error '1004': Application-defined of object-defined error.
This is the VBA-coding which has the problem:
Range("A12").Validation _
.Modify xlValidateCustom,
Formula1:="=AND(COUNTIF($A$11:$A$52;$A12)<2;VLOOKUP($A12;PRODUCTS;3;FALSE)=""RED"")"
Momentarily the cell has the same validation, only the Vlookup has to
match "YELLOW". This rule has been manually entered and works correct.
When the cell validation is changed manually into "RED", there is also
no problem.
Only the funny part is, when I record this change and re-run it, VBA
shows the above mentioned error.
I have been trying to change this little script, but I still did not
manage to make it run. Can someone help me with this issue?
Who can help me on this subject?
Thanks in advance.