+ Reply to Thread
Results 1 to 2 of 2

Force Enable Macros with Password on Save

  1. #1
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Smile Force Enable Macros with Password on Save

    Hi, I have created a number of macros that give a dialog box on opening the document (in the module), requiring a password if you try and save and also removing the copy function. I have found some code to force enable macros but because this code requires same functions as the other codes I am getting a compile error. The code for thisworkbook is shown below:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated,

    Thanks in advance,

    Alex

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Force Enable Macros with Password on Save

    I certainly hope all that code is in different modules appropriately. You can only have one of each of the "event" macros, so when you have two, you need to merge them into one executing in the order you decide.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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