Auto_open

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
 
T

tim m

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)
 
H

Harald Staff

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
 
A

Ardus Petus

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

HTH
 
D

dan

You are so helpful.
FYI, In XP SelfCert.exe is in:
C:\Program Files\Microsoft Office\Office10
Thanks
 
D

dan

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
 
H

Harald Staff

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
 
Top