+ Reply to Thread
Results 1 to 3 of 3

Sheet Protection

  1. #1
    Registered User
    Join Date
    04-25-2005
    Posts
    99

    Sheet Protection

    Is there a tag I can put in at the beginning of a macro that will turn off Sheet Protection, then a tag at the end to turn it back on?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Dejavu,

    Here is the code to simply turn protection on and off without a password ...

    Worksheets("Sheet1").Protect
    Worksheets("Sheet1").UnProtect


    Substitute your worksheet name for Sheet1 in the example.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    04-25-2005
    Posts
    99
    Thank you Leith, that was exactly what I needed. I knew it would be simple, but I was running into a brick wall yesterday. I should have just stepped away for a while, then came back to it.

    Thanks again for your help,

    DejaVu

+ 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