Share via

Macro enabled template

Anonymous
2011-07-03T20:42:17+00:00

I have designed a macro enabled template with buttons which when clicked run macros that are saved to the template. Unfortunately when I create a new workbook from the template, the macros buttons don't work.  Does this have something to do with the security settings for new workbooks?  How do I fix it?  Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2012-02-22T16:10:07+00:00

When you open a document whose VBA project has been digitally signed for the first time, you should be asked whether you want to trust the certificate. If you answer Yes, it should automatically be added to Trusted Publishers.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2011-07-04T10:03:23+00:00

In developer tab click "macro settings" and change the security level to something lower.

You may find it useful to create your own certificate (with "selfcert" which is somewhere in the /Programs/Microsoft Office/Office12 folder) and then add the certificate to the trusted ones (Windows Key + R > certmgr.msc > select the trusted group in the tree box, right-click, add the certificate).

And then, back in VBA, under Tools I think, there's a Digital signature option.

Was this answer helpful?

0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-02-22T16:36:58+00:00

    In 2007 you don't need a digital signature...............just make sure you save the workbooks into a Trusted Location as Hans has pointed out.

    If you do want to use a selfcert signature....................

    See apo__1 reply

    I will add this info to that reply........

    After creating one it will be placed in your Personal Certificates Store.

    You have to move or copy it over to your Trusted Publishers Store.

    Start>Run  certmgr.msc

    Double-click on Personal Certificates to open.

    Select the selfcert you created and drag over to Trusted Publishers.

    When in VBE go to Tools>Digital Signature and Choose.

    Save the workbook.

    Gord

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-02-22T15:28:39+00:00

    If I've created a digital signature for my VBA projects, do I add it to my Trusted Locations or should there be a way to add it to Trusted Publishers?  The latter option is grayed out in my Trust Center options.

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2011-07-03T20:51:24+00:00

    Make sure that the new workbook is saved in a trusted location.

    Was this answer helpful?

    0 comments No comments