Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
D D is offline
external usenet poster
 
Posts: 121
Default Enable/Disable Macro

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_journal s.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_journal s_99124.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close



End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Enable/Disable Macro

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; its a
straight forward task. In Excel help, search for "digital signature" for
more information.

HTH
--
Regards

VBA.Noob.Confused
XP Pro
Office 2007



"D" wrote:

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_journal s.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_journal s_99124.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close



End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
D D is offline
external usenet poster
 
Posts: 121
Default Enable/Disable Macro

Thanks Rick!

Dan

"Rick S." wrote:

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; its a
straight forward task. In Excel help, search for "digital signature" for
more information.

HTH
--
Regards

VBA.Noob.Confused
XP Pro
Office 2007



"D" wrote:

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_journal s.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_journal s_99124.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close



End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable Macro Pop-Up juamig Excel Discussion (Misc queries) 5 April 12th 10 02:57 PM
enable/disable macro RICK Excel Discussion (Misc queries) 4 June 15th 06 07:55 PM
Macro Enable/Disable Marcus B Excel Programming 2 January 22nd 06 02:50 PM
Enable/Disable Macro Brandon[_5_] Excel Programming 0 June 1st 04 06:36 PM


All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"