protection workborks
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Protection of workborks

Protection of workborks

The UK's most regular instructor-led training courses.
Training information: excel training course · Excel-courses-london · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version 2003

Protection of workborks

Joanna has attended:
Excel Intermediate course
Excel Advanced course

by - delegate Joanna [1 post] (2008 Jun 3 Tue, 16:42) replyReply

How can I protect a series of say, 15 worksheets within a workbook in one go without having to individually do it by sheet. I want to protect all sheets at once and leave several input areas for other users on the front sheet open for them to sensitise. I am sure it is possible as there is an option in the list to do it, but I seem to fail. Thanks

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2009 Jan 12 Mon Bayswater 3 book now £224 £224
2007 2009 Jan 13 Tue Bloomsbury 1 book now £224 £224
2002/XP 2009 Jan 13 Tue Tooting 0 FULL    
2003 2009 Jan 15 Thu Southwark 1 book now £215 £215
2007 2009 Jan 20 Tue Bloomsbury 3 book now £224 £224
2003 2009 Jan 20 Tue Southwark 4 book now £207 £215
Full Schedule: See all 134 Excel Intermediate course dates.
Bookings currently available until 30th March 2010.

RE: protection of workborks

by - trainer Simon gold contributer[214 posts] (2008 Jun 4 Wed, 14:10) replyReply

Hi Joanna,

Thank you for your question.

There is no way of protecting multiple worksheets at once. You have to use Visual Basic code.

Before you do this, I would advise you to create a NEW BLANK WORKBOOK and make sure you have at least three worksheets and use this to test it works.

Step 1 - On the front sheet of your workbook, you need to unlock the cells you want people to enter data into. Select those cells using CTRL+click if you need to and then go to Format Cells. Select the Protection tab and take the tick out of the locked option.

Step 2 - Copy the above code from Sub ProtectAllMYSheets() to End Sub. Then go to Tools - Macro - Visual Basic Editor. In the left pane look for a bold VBA project with your filename next to it in brackets. Select it by clicking once on it. Then go to Insert - Module. Then Paste the code into that window.
----------------------------------------------------------------------
Sub ProtectAllMYSheets()
'This protects all the worksheets with the same password

Dim wMySheet As Worksheet

For Each wMySheet In Worksheets
wMySheet.Protect Password:="mysecret", UserInterfaceOnly:=True
Next wMySheet

End Sub
---------------------------------------------------------------------
Anything in green is a comment. If you want to change the password, overtype the existing one in speech marks. Then click the save icon on the toolbar and return to Excel using first button(Excel Icon) on the standard toolbar.

Then run the macro by going to Tools - Macro and select the macro and click run. This will lock all the worksheets with the same password apart from the cells on the front sheet you unlocked earlier. So all anyone can do is type into the cells you unlocked on the front sheet.

To unlock each sheet, just select that sheet and go to Tools - Protection - Unprotect sheet and put the password in.

I hope this has answered your question.

Please let me know if it works for you.

Regards

Simon


Related articles

· Microsoft Excel Training - Numerical excellence for all
· Features of Microsoft Excel that assist in Analysis of Financial Data
· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· Database Tips from an Excel Training Course
· Prepare for your MOS Certification with MS Excel Courses

Please browse our web site to find out more about
excel training course and other Microsoft training courses.

Excel tip:

Bracketed negative numbers

Often Excel users wish to display negative numbers in colour red and bracketed

Intstructions
Step1. Select Format > Cells menu options. Within Numbers tabsheet, select Category = Custom.
Step 2. Select a type such as #,##0;[Red]-#,##0;; that specifies a colour in square brackets.
Step 3. Amend as follows; #,##0;[Red](#,##0;;

Notes: Excel formatting featues are of the form
"Positive; Negative;Zero;Text" separated by semicolon.

View all Excel hints and tips

Rate this page:
3.0/5 (5 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
Microsoft access courses · Microsoft training access course
Microsoft+access+training · Access courses in london

Training Information
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo