Protection Macro

stumped

New Member
Joined
Jan 13, 2002
Messages
9
I have a macro that protects all my worksheets. I have one tab that I unlocked some cells so that when it is protected the user can alter the contents. But everytime I protect the document using the macro the cells become locked again.

Do I have to write in the macro to unlock those cells prior to protecting it?

I have unlocked them, saved it. Then protected and it works, but if I use the macro to protect, then close the workbook and reopen the cells are locked again.

Help!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
best advice i can offer

follw what you wopuld do manulally tyo get the task automated, no shorts cuts VBA dont always shor cut just does what we can in 10 mins in 10 seconds VERY FAST..
suggest record it.. watch errors them recored as well
 
Upvote 0

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top