J
jordanctc
I have this save as vba code:
ChDir "I:\Accounting\Inventory Files\2004"
ActiveWorkbook.SaveAs Filename:= _
"I:\Accounting\Inventory Files\" & Format(Date, "yyyy")
"\Inventory " & Format(Date, "m-d-yyyy") & " with Discounts.xls"
FileFormat:= _
xlNormal, Password:="", WriteResPassword:=""
ReadOnlyRecommended:=False _
, CreateBackup:=False
It works great but I know that it errors when the year would roll ove
and it would look for the 2005 folder. Instead of having tons o
folders for future years, I need a way to check for the right folde
before this and create it if necessary.
Jorda
ChDir "I:\Accounting\Inventory Files\2004"
ActiveWorkbook.SaveAs Filename:= _
"I:\Accounting\Inventory Files\" & Format(Date, "yyyy")
"\Inventory " & Format(Date, "m-d-yyyy") & " with Discounts.xls"
FileFormat:= _
xlNormal, Password:="", WriteResPassword:=""
ReadOnlyRecommended:=False _
, CreateBackup:=False
It works great but I know that it errors when the year would roll ove
and it would look for the 2005 folder. Instead of having tons o
folders for future years, I need a way to check for the right folde
before this and create it if necessary.
Jorda
