+ Reply to Thread
Results 1 to 2 of 2

need a macro to lock sheet

  1. #1
    dgr
    Guest

    need a macro to lock sheet

    I would like a simple macro that inserts my password into the 2 protection
    fields when locking the sheet.
    When I go to unprotect the sheets the file doesn't ask for the password?

  2. #2
    Tom Ogilvy
    Guest

    RE: need a macro to lock sheet

    Activesheet.Protect Password:="ABC"

    Activesheet.Unprotect Password:="ABC"

    are the commands.

    Just another thought.
    You need to save the workbook before closing if you want them to be in
    effect when you open it.

    --
    Regards,
    Tom Ogilvy


    "dgr" wrote:

    > I would like a simple macro that inserts my password into the 2 protection
    > fields when locking the sheet.
    > When I go to unprotect the sheets the file doesn't ask for the password?


+ 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