I went throught various threads and got several tips on Validation. But still my code is throwing me an error. It could be a silly error but i couldn;t spot it.
Set val1range = projInfo.Range(projInfo.Cells(2, 23), projInfo.Cells(m, 23))
With Cells(rowN, 3).Validation
.Delete
.Add Type:=xlValidateList, Formula1:="=" & val1range
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
I am getting a 1004 error on the line .Add Application-defined or object-defined error.
Could youplease let me know if i am giving the correct formula?