
Originally Posted by
toecutter
I have enabled all in macro security but this version of office still produces this message
I carnt even find where the version is displayed lol
I have the same issue, but i want to overwrite/not prompt to continue saving as a macro-free workbook.
My code is below:
Code:
Private Sub Workbook_Open()
Run "update_rpt"
End Sub
Update_rpt
Code:
Sub update_rpt()
Dte = Weekday(Date)
Select Case Dte
Case Is = 3, 4, 5, 6, 7
Dte = Date - 1
Case Is = 1 'Sun
Dte = Date - 2
Case Is = 2 'Mon
Dte = Date - 3
End Select
FDte = Format(Dte, "yyyy_mm_dd")
'
' update_rpt Macro
'
ChDir "\\ezfp1\Results\InReview\"
ActiveWorkbook.SaveAs Filename:= _
"\\ezfp1\Results\InReview\AML_" & FDte & ".xls", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False
End Sub
Exit_Excel
Code:
Sub Exit_Excel()
Application.Quit
End Sub