+ Reply to Thread
Results 1 to 3 of 3

Encrypt Macro in a workbook

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Encrypt Macro in a workbook

    I need to encrypt all the macros i have used in a workbook, so that users cannot see them
    Is it possible?
    Any help please

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Encrypt Macro in a workbook

    If you want to stop (most) users accessing your code, simply protect the workbook's code module. If you don't want users to be able to see that the macros are there, you can prefix their names with 'Private' or you could add a dummy parameter (eg Sub MyMacro(Optional Dummy As Boolean)). To hide a whole module, you can add 'Option Private Module' at the top of the relevant code module.

    If you want to prevent users accessing the macros dialogue, you could use the following sub:
    Please Login or Register  to view this content.
    So many possibilities ...
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    05-23-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Encrypt Macro in a workbook

    Thanx a lot

+ 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