+ Reply to Thread
Results 1 to 3 of 3

Macro to Protect and UnProtect

Hybrid View

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

    Yes, it can be done ...
    ActiveSheet.Protect password:="mmacw"
    
    ''''' your code
    
    ActiveSheet.Unprotect password:="mmacw"
    Last edited by Carim; 02-13-2007 at 04:41 PM.
    HTH
    Carim


    Top Excel Links

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

    In order to protect your code ...
    Alt F11
    In the project window (left)
    Highlight VBAProject(YourWorkbookName)
    Right Click
    Select VBAProject Properties
    Protection ...

+ 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