TransferSpreadsheet (1 Viewer)

dreamz

Is God Like
Local time
Today, 06:33
Joined
Dec 21, 2005
Messages
48
Hi

How can i export my file using the macro (transferspreadsheet function) but export the file with the current date.

so if the filename is gonna be fhm.xls, i'd like it to be fhm09-01-2006.xls.
 

reclusivemonkey

Registered User.
Local time
Today, 06:33
Joined
Oct 5, 2004
Messages
749
You need to create a string for the filename. So;

Code:
myDate = Date
myDate = Replace(myDate, "/", "-")
myFilename = "fhm" & myDate & ".xls"

Then just use myFilename in the transferspreadsheet function.
 

dreamz

Is God Like
Local time
Today, 06:33
Joined
Dec 21, 2005
Messages
48
will give it a go.


Thanks :)
 

Users who are viewing this thread

Top Bottom