FDPetey
New Member
- Joined
- Aug 14, 2023
- Messages
- 20
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
I want to protect a column that has a changing value from a vba script that runs off an entry made on a separate sheet. I tried to lock the cells in the column and protect the sheet but I keep getting the following error -
Run-time error '1004':
The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.
When I select Debug, the code that gets highlighted is for that protected cell that should be updating.
Any ideas on how to protect the cells so it can be updated with an entry on another sheet but not selected on the reporting sheet and manually changed?
Run-time error '1004':
The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.
When I select Debug, the code that gets highlighted is for that protected cell that should be updating.
Any ideas on how to protect the cells so it can be updated with an entry on another sheet but not selected on the reporting sheet and manually changed?