Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
previous day
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
|
|||
|
|||
previous day
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
|
|||
|
|||
previous day
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
|
|||
|
|||
previous day
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
|
|||
|
|||
previous day
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 | |
|
|
Similar Threads | ||||
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 |