Cornhusker
New Member
- Joined
- Oct 20, 2010
- Messages
- 19
My worksheet has a tab for each month with the name of the sheet the month and year (Feb 11, Mar 11, etc.)
In cells (D3:AH3) I have the day of the month.
I can't use an open event to lock cells because macros are not enabled when the file is opened.
Instead I want to use a close event to protect and lock the entire worksheet.
Then when the user opens the worksheet he/she will have to enable macros and then I'll need a macro to trigger that will unlock all of the columns except those that are from previous dates.
It goes the long way around but accomplishes what I want.
I would need the two seperate codes 1 to lock all of the cells on all the sheets with a close event.
another to unlock all the cells except the ones from previous days. Each sheet represents a different month and the range (d3:ah3) has 1-31 for the days of the month.
Thanks for the help
In cells (D3:AH3) I have the day of the month.
I can't use an open event to lock cells because macros are not enabled when the file is opened.
Instead I want to use a close event to protect and lock the entire worksheet.
Then when the user opens the worksheet he/she will have to enable macros and then I'll need a macro to trigger that will unlock all of the columns except those that are from previous dates.
It goes the long way around but accomplishes what I want.
I would need the two seperate codes 1 to lock all of the cells on all the sheets with a close event.
another to unlock all the cells except the ones from previous days. Each sheet represents a different month and the range (d3:ah3) has 1-31 for the days of the month.
Thanks for the help