microsoft+excel+training - how do you automatically

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » microsoft+excel+training - How do you automatically prtotect multiple worksheets

microsoft+excel+training - How do you automatically prtotect multiple worksheets

resolvedResolved · Low Priority · Version Standard

Ryan has attended:
Excel VBA Intro Intermediate course

How do you automatically prtotect multiple worksheets

Is it possible to automatically protect and unprotect multiple worksheets using a macro? Is it also possible to hide and unhide multiple worksheets using a macro?

Thanks

RE: How do you automatically prtotect multiple worksheets

Hi Ryan. The simplest way to generate the code for this is to record a macro and then carry out the tasks. You can protect the current worksheet by accessing the ActiveSheet.Protect object and sheets can be similarly hidden simply by specifying which ones you want. Create macros to protect/unprotect, hide/unhide, assign them to icons on your toolbar and you're away!

Hope this helps,

Anthony

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Adding up time greater than 24 hours

When you add up time if it exceeds 24 hours i.e 27 hours appears as 03:00. Go to Format / Cells / Number / Custom. The format is hh:mm but if change it to [hh]:mm it will add up to the correct amount of hours.

View all Excel hints and tips


Server loaded in 0.09 secs.