shoodabean Posted April 8, 2006 Report Posted April 8, 2006 Hi, im generating some stuff and saving it to a text file. All is good, but i would like to be able to save it to a filename suchas: somefile-01-11-2005--16-13.txt Where the '01-11-2005--16-13' is the time the file is created. Cant seem to find a way to specify a program/macro generated filename. Is it possible ? Thanks. Quote
joe Posted April 8, 2006 Report Posted April 8, 2006 What you want is the Date/Time command within the Text category. It allows you to save a timestamp to a text variable which can then be used as a file name. Quote
shoodabean Posted April 9, 2006 Author Report Posted April 9, 2006 Thanks for your reply joe, I've found the Date/Time command, but not sure how to make that a filename. Could you give me some 'eedjut' proof guidance please ? Quote
lemming Posted April 9, 2006 Report Posted April 9, 2006 This posting contains example code for a filename with timestamp. Quote
shoodabean Posted April 9, 2006 Author Report Posted April 9, 2006 ahh! I wasn't aware that you could use variables within the filename dialog boxes. Great Stuff! Thankyou both. Quote
floyd Posted April 9, 2006 Report Posted April 9, 2006 You can use variables in almost any field that takes literals as input. Macro Express substitutes the variable with its contents at run time. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.