is there any reason you can think of that if i apply the same code to save the file as something specific the formatting would turn it all into zeroes?
the file saves as - "EFR -00.00.0"
filepath: M:\R\2020\EEFR -00.00.0.xlsm
cells
F2 - 5
F3 - 27
F4 - 2020
Sub saveasrisk()
'CHANGE to last biz date
Dim saveCellday As Long
Dim saveCellmonth As Long
Dim saveCellyear As Long
saveCellmonth = Range("F2").Value
saveCellday = Range("F3").Value
saveCellyear = Range("F4").Value
ChDir "M:\R\2020"
ActiveWorkbook.saveas Filename:= _
"M:\R\2020\EFR - " & Format(saveCellmonth, "00") & "." & Format(saveCellday, "00") & "." & saveCellyear & ".xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
End Sub
Bookmarks