Enable/Disable Macro

D

D

Hi:

I have the below macro that runs at 9am; but in the enable / disable macro
message someone should click Yes; can you please tell me how can I bypass
this message; I do not want to set the Security to Low.

Thanks,

Dan

Sub auto_open()
'



' Journals_Files Macro
' Macro - by Dan

Application.DisplayAlerts = False

ChDir "U:\TREASURY\PUBLIC\TBM Middle Office\ROBONEILL\2008\Autorec\Jan08"
Workbooks.Open Filename:= _
"U:\TREASURY\PUBLIC\TBM Middle
Office\ROBONEILL\2008\Autorec\Jan08\mthly_journals_1.xls"
ActiveWorkbook.SaveAs Filename:= _
"U:\TREASURY\PUBLIC\TBM Middle
Office\ROBONEILL\2008\Autorec\4Alice\mthly_journals.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close
Workbooks.Open Filename:= _
"U:\TREASURY\PUBLIC\TBM Middle
Office\ROBONEILL\2008\Autorec\Jan08\mthly_journals_99124_1.xls"
ChDir "U:\TREASURY\PUBLIC\TBM Middle Office\ROBONEILL\2008\Autorec\4Alice"
ActiveWorkbook.SaveAs Filename:= _
"U:\TREASURY\PUBLIC\TBM Middle
Office\ROBONEILL\2008\Autorec\4Alice\mthly_journals_99124.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close



End Sub
 
R

Rick S.

I use a Digital Signature. This allows my security settings to remain high
and we can run any macro I assign the certificate too.

You will have to setup the certificate on all of your users systems; it’s a
straight forward task. In Excel help, search for "digital signature" for
more information.

HTH
--
Regards

VBA.Noob.Confused
XP Pro
Office 2007
 
D

D

Thanks Rick!

Dan

Rick S. said:
I use a Digital Signature. This allows my security settings to remain high
and we can run any macro I assign the certificate too.

You will have to setup the certificate on all of your users systems; it’s a
straight forward task. In Excel help, search for "digital signature" for
more information.

HTH
--
Regards

VBA.Noob.Confused
XP Pro
Office 2007
 

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

Similar Threads


Top