+ Reply to Thread
Results 1 to 4 of 4

Workbook_Activate and Workbook_Open

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    272

    Workbook_Activate and Workbook_Open

    We have a macro in our old 2003 file that runs when excel opens. It loads in our addin buttons. Now with 2007 it will not run the macro because of the security. If someone clicks to allow the macros to run it will not put the addins in. How can we get past this, here is the old code:

    Please Login or Register  to view this content.
    Secondly we have a protection macro that runs when the file opens, but this gets bypassed to leaving stuff unprotected. Here is the start of that code:

    Please Login or Register  to view this content.
    Can I change that to _WhenSAVE or something like that?
    _Close does not work because it does it after you have saved.

    Thanks in advanced

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Workbook_Activate and Workbook_Open

    Hi caliskier
    Go to Developer>Macro Security>Trusted locations and add the folder where you have the file
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    272

    Re: Workbook_Activate and Workbook_Open

    Quote Originally Posted by pike View Post
    Hi caliskier
    Go to Developer>Macro Security>Trusted locations and add the folder where you have the file
    Thanks, thanks thanks!!!

    This should save some pain, but I am getting security errors (current settings stuff) that I am trying to fix. any ideas?

  4. #4
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    272

    Re: Workbook_Activate and Workbook_Open

    Ha, just got past that, no more help needed... I hope

+ 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