Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to save a file with the date as part of the
file name but the format is wrong. I guess I have to set the date to a variable and then specify the format but I dont know how to specify the format. Can anyone help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 16 Feb 2004 10:07:36 -0800, "Edgar Thoemmes"
wrote: I am trying to save a file with the date as part of the file name but the format is wrong. I guess I have to set the date to a variable and then specify the format but I dont know how to specify the format. Can anyone help? Look at the FORMAT function: Format Function Returns a Variant (String) containing an expression formatted according to instructions contained in a format expression. so something like: fnstring = "My Filename" fnstring = fnstring & FORMAT(DATE,"yyyymmdd") --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
permanent conversion of 1904 date format to 1900 date format | Excel Worksheet Functions | |||
change date format dd/mm/yyyy to Julian date format? | Excel Worksheet Functions | |||
Convert european foreign date format to US date format | Excel Worksheet Functions | |||
convert serial date format to normal date format | Excel Discussion (Misc queries) | |||
Change a date in text format xx.xx.20xx to a recognised date format | Excel Programming |