I am trying to safe a file including todays date. The macro will exacute, but the date is wrong and strung together
i.e. Vendor Validation Report 40644.xls \
I have tried using & Format(NOW, MM - DD - YY) & ".xls", as well as & Format(Date, MM - DD - YY) & ".xls"
niether seem to pull the correct date or format it in "MM-DD-YY" format
Any Tips - I am very new to VBA
thanks
You can View my code below:
Sub SAVE_TEST()
'
' SAVE_TEST Macro
'
'
'
ChDir "C:\~VENDOR_VALIDATION"
ActiveWorkbook.SaveAs Filename:= _
"C:\~VENDOR_VALIDATION\Vendor Validation Report" & Format(Date, MM - DD - YY) & ".xls", FileFormat:=xlExcel8, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
With ActiveSheet
Range("A1").Select
End With
End Sub
Bookmarks