Forum

Notifications
Clear all

protect

4 Posts
2 Users
0 Reactions
94 Views
(@rathanak)
Posts: 55
Trusted Member
Topic starter
 

Hi excel expert,how can we write code to lock some ranges if select drop down list Locked the ranges will be locked otherwise unlocked

For example as i choose from drop down list the words locked in cell C2 then ranges A3:E10 automatically locked,if not choose it unlocked

Regards,

 
Posted : 17/12/2016 2:46 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi rathanak

Try this.

Sunny

 
Posted : 17/12/2016 3:39 am
(@rathanak)
Posts: 55
Trusted Member
Topic starter
 

Sunny,i run code in your excel file,it works but as i modify my code like you it locked it not allowed me to select from drop down list,why?

anyone here comment any solution?

regards,

 
Posted : 17/12/2016 4:28 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi rathanak

Just unprotect the input cell C2 before you protect the worksheet.

Sunny

 
Posted : 17/12/2016 10:29 am
Share: