davidrusbridge
New Member
- Joined
- May 14, 2011
- Messages
- 17
Can someone suggest the VBA code that will allow the following scenario:
I am using Excel 2003 with a single sheet. The majority of the cells are locked apart from 8 cells which can be selected
Cell R:20 is normally locked
Cell C:12 has a drop down box with 5 text data type choices available. If choice 5 is selected I want cell R:20 to unlock for number entry. If any other choice is made I want cell R:20 to remain locked and preferably display a zero
The sheet will be password protected so I assume the code will have to declare a variable containing the password so it can unprotect the sheet, unlock the cell then protect the sheet again?
Any help will be gratefully received
I am using Excel 2003 with a single sheet. The majority of the cells are locked apart from 8 cells which can be selected
Cell R:20 is normally locked
Cell C:12 has a drop down box with 5 text data type choices available. If choice 5 is selected I want cell R:20 to unlock for number entry. If any other choice is made I want cell R:20 to remain locked and preferably display a zero
The sheet will be password protected so I assume the code will have to declare a variable containing the password so it can unprotect the sheet, unlock the cell then protect the sheet again?
Any help will be gratefully received