Excel Macro security

H

Howard Brazee

How do I set macro security high or medium, but tell it to run the VB
macro I wrote for a spreadsheet without asking me each time?

I have an old spreadsheet that now has #NAME? in the resulting fields
- I think that is because I have updated my Office since it was
created, and it's not running the VB macro.
 
B

Beth Melton

If under Tools/Macro/Security, on the Trusted Publishers tab you have
"Trust all installed add-ins and templates turned on" and the macro is
located in a trusted location then you won't be prompted to
Enable/Disable macros with Medium security and they will still run
with High security.

Where is the macro located? Is it in your Personal.xls folder in the
XLStart folder? If so then the XLStart folder is a trusted location.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 
H

Howard Brazee

If under Tools/Macro/Security, on the Trusted Publishers tab you have
"Trust all installed add-ins and templates turned on" and the macro is
located in a trusted location then you won't be prompted to
Enable/Disable macros with Medium security and they will still run
with High security.

Under the Security Level tab, I have Medium Security set.

Under the Trusted Publisher's tab there are two check boxes:
[x] Trust all installed add-ins and templates
[ ] Trust access to Visual Basic Project
Where is the macro located? Is it in your Personal.xls folder in the
XLStart folder? If so then the XLStart folder is a trusted location.

I'm not sure. I just created the macro from within the spreadsheet.

It appears that my computer is not a trusted location. I just tried
to open macros using the Visual Basic editor, but nothing showed up.
This has happened before, and I futzed around for a while and finally
was able to get something to show up. Even though I was able to
write a complicated set of macros, I never have been able to figure
out the structure (modules, classes, projects, etc.). View Code
creates something new. View Project Explorer looks promising, but
clicking on each element does not show my code. Ahh, found it, I
needed to double-click on module 1. That's where I see my code, but
I don't see where it gets stored.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top