Ok this one has got me stumped
Im trying to set data validation for a cell and yesterday i had it all working fine, then, for aparently no reason, it started throwing an error and i dont know why, as the code hasnt changed and it was working before.
[vba]
With Worksheets(1)
.Range("D" & SummaryRow + 9).Validation.Delete
.Range("D" & SummaryRow + 9).Validation.Add Type:=xlValidateList, Operator:=xlBetween, Formula1:="=$AG$1:$AG$32"
End with
[/vba]
and the error is the attached image
Edit: Forgot to say the error springs up on the Validation.Add line
the range specifed in the formula1 is correct and i can set the validation manully without any problems but the VBA has just started generating the error
any ideas??
kieran