Auto_open

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

When I open a workbook with macros, a msgbox "if I want to enable the
Macros" appeared.
Is there a script for Auto_open() to enable by default.
Thanks
 
That message is probably relateing to the macro security settings you have
for Excel. Tools...options....security...macro security

Depending on what setting you have this set to it will deny all macros, or
ask if you want to trust the macros (medium) or open without asking. (This
one is not recommended unless you are 100% sure you can trust the source)
 
Thank you Tim,
Can I exclusively apply it to my own books instead of globly?
 
You can sign your macros with a digital signature -do a google on
"selfcert.exe" or post back if you cant find anything on it.

Now set security to Medium -the only reasonable security level in my
opinion. On opening of your signed file Excel will ask "This workbook
contains macros by John Smith (or whatever your little name is)" and if you
click "Always trust this source" then your signed macros will open without
asking from now on.

HTH. Best wishes Harald
 
On my box (Office 2000 - default installation), SelfCert.exe is in:
C:\Program Files\Microsoft Office\Office

HTH
 
You are so helpful.
FYI, In XP SelfCert.exe is in:
C:\Program Files\Microsoft Office\Office10
Thanks
 
Thank you Harald, I had it working.

Harald Staff said:
You can sign your macros with a digital signature -do a google on
"selfcert.exe" or post back if you cant find anything on it.

Now set security to Medium -the only reasonable security level in my
opinion. On opening of your signed file Excel will ask "This workbook
contains macros by John Smith (or whatever your little name is)" and if
you
click "Always trust this source" then your signed macros will open without
asking from now on.

HTH. Best wishes Harald
 
Good for you.
I should mention that I've had some serious problems with digitally signed
files when I've worked with multiple versions of Excel simoultaneously (I've
had Excel 2000 and Excel 2003 upå and running at the same time on the same
computer). This will not be a problem for "normal" users, so this warning is
just for the record.

Best wishes Harald
 

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

Back
Top