julie_nickb
New Member
- Joined
- Sep 13, 2018
- Messages
- 46
- Office Version
- 365
I have have succeeded in modifying the Validation Input message for my input cells, by using the "Selectionchange" event in VBA.
All worked fine, until I did the following:
- used the "Format Cells" "Protection" tab to uncheck the "Locked" box for the input cells
- Protected the sheet with the "Review" tab
Now, when I click on my "Unlocked" cell, I get the following message:
Run time error 1004
Application defined or Object defined error
This is the code line where the error occurs.
.InputMessage = "YES"
If I unprotect the sheet, it works.
If I take out the modification of the Inputmessage, it does not crash.
Help please!
All worked fine, until I did the following:
- used the "Format Cells" "Protection" tab to uncheck the "Locked" box for the input cells
- Protected the sheet with the "Review" tab
Now, when I click on my "Unlocked" cell, I get the following message:
Run time error 1004
Application defined or Object defined error
This is the code line where the error occurs.
.InputMessage = "YES"
If I unprotect the sheet, it works.
If I take out the modification of the Inputmessage, it does not crash.
Help please!