D dreamz Is God Like Local time Today, 17:03 Joined Dec 21, 2005 Messages 48 Jan 9, 2006 #1 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.
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, 17:03 Joined Oct 5, 2004 Messages 749 Jan 9, 2006 #2 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.
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.
D dreamz Is God Like Local time Today, 17:03 Joined Dec 21, 2005 Messages 48 Jan 9, 2006 #3 will give it a go. Thanks