Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
so far i have the following bit of code:
ActiveWorkbook.SaveAs FileName:="C:\test\" & Format(Date, "ddmmm") & ".xls" this works nicly saving the thing with todays date (I.e 17 Oct) what i need is to save it with yesterdays date and i have no idea how to -1day from the format please help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Tigoda,
Try... ActiveWorkbook.SaveAs Filename:="C:\test\" & Format(Now() - 1, "yymmdd") & ".xls" Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Format(Date-1, "ddmmm")
Regards, Stefi €˛tigoda€¯ ezt Ć*rta: so far i have the following bit of code: ActiveWorkbook.SaveAs FileName:="C:\test\" & Format(Date, "ddmmm") & ".xls" this works nicly saving the thing with todays date (I.e 17 Oct) what i need is to save it with yesterdays date and i have no idea how to -1day from the format please help |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
that easy eh?
thanks! "Stefi" wrote: Format(Date-1, "ddmmm") Regards, Stefi €˛tigoda€¯ ezt Ć*rta: so far i have the following bit of code: ActiveWorkbook.SaveAs FileName:="C:\test\" & Format(Date, "ddmmm") & ".xls" this works nicly saving the thing with todays date (I.e 17 Oct) what i need is to save it with yesterdays date and i have no idea how to -1day from the format please help |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, XL knows several tricks to simulate everyday operations, it's worth
while to try them! Regards, Stefi €˛tigoda€¯ ezt Ć*rta: that easy eh? thanks! "Stefi" wrote: Format(Date-1, "ddmmm") Regards, Stefi €˛tigoda€¯ ezt Ć*rta: so far i have the following bit of code: ActiveWorkbook.SaveAs FileName:="C:\test\" & Format(Date, "ddmmm") & ".xls" this works nicly saving the thing with todays date (I.e 17 Oct) what i need is to save it with yesterdays date and i have no idea how to -1day from the format please help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
3-Color Scale Vlookup for Current Month/Previous/Pre-Previous | Excel Discussion (Misc queries) | |||
How do I see all previous posts | Excel Worksheet Functions | |||
Previous Month End | Excel Discussion (Misc queries) | |||
NEXT/PREVIOUS OPTIONBUTTON | Excel Programming | |||
Previous Column | Excel Programming |