![]() |
Save file with todays date ref#11235
Hello,
I need to save an excel file to the below directory with todays date can anyone assist me in combining the two formulas. Formulas to save file as todays date ActiveWorkbook.SaveAs "Report" & Format(Now, "yyyymmdd") & ".xls" This is the directory Sub test3() ' ' test3 Macro ' Macro recorded 1/29/2009 by ME ' ' ActiveWorkbook.SaveAs Filename:= _ "\\Wnccteav4\CCVOL4\MFC\SHARED\GSAM\Macro Database\Currency Imbalance\Imbalance database\For 01.30.09.xls" _ , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False End Sub |
Save file with todays date ref#11235
Construct your file name string first like this
FName="\\Wnccteav4\CCVOL4\MFC\SHARED\GSAM\Macro Database\Currency Imbalance\Imbalance database\Report" & Format(Now, "yyyymmdd") & ".xls" Then use it in the Save line ActiveWorkbook.SaveAs Filename:= _ FName, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False " wrote: Hello, I need to save an excel file to the below directory with todays date can anyone assist me in combining the two formulas. Formulas to save file as todays date ActiveWorkbook.SaveAs "Report" & Format(Now, "yyyymmdd") & ".xls" This is the directory Sub test3() ' ' test3 Macro ' Macro recorded 1/29/2009 by ME ' ' ActiveWorkbook.SaveAs Filename:= _ "\\Wnccteav4\CCVOL4\MFC\SHARED\GSAM\Macro Database\Currency Imbalance\Imbalance database\For 01.30.09.xls" _ , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False End Sub |
All times are GMT +1. The time now is 07:22 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com