Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Disable/enable or lock/unlock cells in VBA dependent on other cells values
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="athi.sath, post: 14176582"] I have a set of questionnaire form... if A1="No" then disable/lock B1 if A2="No" then disable/lock B2 etc if A1 is Yes then you can (enable/unlock) B1 and can accept values etc can not seem to lock and protect the worksheet to do what I want.... I have been using worksheet change event.... I tried .... Sheets("xxxx").range("A1:B39").Locked = False Sheets("xxxx").protect I then try and set specific cells to be locked = true i.e if range("A1")="No" then range("B1").locked = true else range("B1").locked = False end if however this approach is not working.... can you suggest the best way to achieve my goal... disable/enable or lock/unlock hide/unhide B1 dependent on A1 disable/enable or lock/unlock hide/unhide B2 dependent on A2 [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Disable/enable or lock/unlock cells in VBA dependent on other cells values
Top