Workbook is protected, sheet is protected userinterfaceonly, have checked and the correct range is selected.
Following code fails on the .Add method with an automation error - 2147417848 (80010108) - The object invoked has disconnected from it's clients. If the sheet is fully unprotected, there is no error - problem is, I need the sheet and the workbook structure protected - ...
With Selection.Validation
.Delete
.Add Type:=xlValidateList, _
AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=Choices
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Replacing the .Delete and .Add with a single .Modify results in another error...1004 Application-defined or object-defined error.
I'd like the current code to apply the validation shown on the protected workbook/ sheet...can you help?
Oh, I have searched (here, mrexcel, cpearson, microsoft support forums, google, expertexchange) and I can find the error but not as a result of my particular circumstances.
Thanks