+ Reply to Thread
Results 1 to 7 of 7

protecting all worksheets of the workbook.

  1. #1
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    protecting all worksheets of the workbook.

    Good afternoon everyone.

    need help to make a macro to protect all worksheets of a workbook in excel2007.

    someone help me??
    Last edited by Birnen; 11-25-2010 at 01:02 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: protecting all worksheets of the workbook.

    Try this:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: protecting all worksheets of the workbook.

    no...

    is the code complet...

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: protecting all worksheets of the workbook.

    Yes apart from needing to go somewhere within a procedure:

    Please Login or Register  to view this content.

    Dom

  5. #5
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: protecting all worksheets of the workbook.

    Quote Originally Posted by Domski View Post
    Yes apart from needing to go somewhere within a procedure:

    Please Login or Register  to view this content.

    Dom
    what do you mean whit "ws"?

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: protecting all worksheets of the workbook.

    'ws' is just a variable name I gave to a worksheet object. The code will then just loop through all the worksheets in the active workbook and protect them all.

    If this isn't what you require can you provide some more information.

    Dom

  7. #7
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: protecting all worksheets of the workbook.

    Many thanks...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1