The basic code to unlock the cells would be something like:
I have a workbook with multiple sheets. Cells on each sheet with no shading are input cells. I need a macro such that when a button is pushed, it will 1) prompt the user to immediately save as a new file named "Revised XX/XX/XX" where XX/XX/XX = current date and then 2) go through all sheets in the workbook and unlock/unprotect cells with no shading (cells.interiorindex = xlNone).
I have attached a sample workbook - so what i want it to do is when you push the button on sheet 1, it prompts you to save as new file and then formats all white cells as locked = false on sheets 1, 2 and 3.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You would basically format all the input cells with your protection style when you set up the workbook. Then when you want to toggle the protection property, all you need to do is alter the style and all the cells will change automatically.
Of course, having re-read your initial post, that may not actually help if this macro is for setting up the initial template!
Rory
Business Accounts
Answer for Membership
by: roryaPosted on 2009-10-15 at 00:50:10ID: 25578195
Do you just want the user prompted to save, or do you want the workbook actually saved automatically?