Method Add of object Validation Failed - please help

S

Shokie

I am getting error on the add method on validation -

Method Add of object Validation Failed - please help

Me.Unprotect
With Sheet1.Cells(1, 1).Validation
.Delete
.Add xlValidateList, xlValidAlertWarning, , Lst <<<< Error
here!!!!!
.ErrorMessage = "Please select an Employee from the list"
.ErrorTitle = "Select Employee"
End With
 
D

David Heaton

I am getting error on the add method on validation -

Method Add of object Validation Failed - please help

Me.Unprotect
    With Sheet1.Cells(1, 1).Validation
        .Delete
        .Add xlValidateList, xlValidAlertWarning, , Lst  <<<< Error
here!!!!!
        .ErrorMessage = "Please select an Employee from the list"
        .ErrorTitle = "Select Employee"
    End With


Try This


Me.Unprotect
Sheet1.Cells(1,1).Select
With Selection.Validation
.Delete
.Add xlValidateList, xlValidAlertWarning, , Lst
.ErrorMessage = "Please select an Employee from the list"
.ErrorTitle = "Select Employee"
End With


hth

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top