General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
Dear All:
I have an Excel 2003 file that will be available to several users. One worksheet will be a form for the user to fill in and other worksheets will be hidden. The FORM worksheet will be protected so only cells where the user is to enter data will be unprotected.
My problem is I need to turn on cell protection for some cells depending on the option the user selects. For example, if the user selects option #1, some cells (B2 and B3) will be populated with data by a macro and I want to protect those cells from being changed by the user. If the user selects option #2, those cells should remain unprotected so the user may enter data.
Since the worksheet is already protected (to prevent the user from changing other cells), simply turning on and off worksheet protection won't do the job. I need to be able to leave the worksheet protected but alter which cells are protected.
I have an Excel 2003 file that will be available to several users. One worksheet will be a form for the user to fill in and other worksheets will be hidden. The FORM worksheet will be protected so only cells where the user is to enter data will be unprotected.
My problem is I need to turn on cell protection for some cells depending on the option the user selects. For example, if the user selects option #1, some cells (B2 and B3) will be populated with data by a macro and I want to protect those cells from being changed by the user. If the user selects option #2, those cells should remain unprotected so the user may enter data.
Since the worksheet is already protected (to prevent the user from changing other cells), simply turning on and off worksheet protection won't do the job. I need to be able to leave the worksheet protected but alter which cells are protected.