+ Reply to Thread
Results 1 to 4 of 4

Protecting a sheet with a password using VBA code

  1. #1
    Registered User
    Join Date
    02-12-2006
    Posts
    54

    Protecting a sheet with a password using VBA code

    Hello

    I know how to manually protect a sheet with a password, but my question is this: How do I protect a certain sheet with a password using VBA code?

    From my present knowledge when I say:

    Please Login or Register  to view this content.
    then it protects my sheet but with no password, so any user of my sheet could just unprotect it manually by going to Tools > Protect > Unprotect Sheet

    Any hints?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Just add another argument to the end password:="yourpassword"

  4. #4
    Registered User
    Join Date
    02-12-2006
    Posts
    54
    I do really appreciate your quick answers, thanks a lot It worked just perfect

+ 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