Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
convert date to string of numbers
How would I write a line of code to change the date, such as 02/09/07, to a
string of numbers '020907' I'm trying to write a line that will "save as" an excel file with a specific name concatenated with the date at the end. Note: the date will always change depending on the date the file is saved. Here's a sample of the line of code I am working with ActiveWorkbook.SaveAs Filename:= _ ' "C:\Temp\SaveAsTest_" & <INSERT DATE CODE HERE & ".xls", FileFormat _ ' :=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _ ' False, CreateBackup:=False ds |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
String Fractions Convert to Numbers VBA | Excel Discussion (Misc queries) | |||
Convert numbers to text string | Excel Discussion (Misc queries) | |||
Auto convert an alphanumeric string (CIS9638S) to numbers only? | Excel Worksheet Functions | |||
Can i convert numbers into string format? | Excel Discussion (Misc queries) | |||
Convert String of 512 numbers to a range | Excel Programming |