I am trying to wite the date to a text file but
doing
print #1, date
isn't doing it... is there anyother way I can do this?
Printable View
I am trying to wite the date to a text file but
doing
print #1, date
isn't doing it... is there anyother way I can do this?
You need to be bit more specific. What do you mean "xyz" isn't doing it? What DOES it do?
Are you closing the file?
Do you get an error?
Do you get the data, just in the wrong format?
WHAT?! Details, please.
yes.. plz explain your problem a bit more :D
is it literally printing "date" instead of the date... ???
VB Code:
Private Sub cmdSaveDate_() Dim Today As Variant Today = Format(Now,"mm/dd/yyyy") Open "c:\MyDateFile.txt" For Append As #1 Print #1, Today Close #1 End Sub
I am able to create, open and close the file but inside the file where I should be printing the date... there isn't anything there.
hack... thanks,
I see where i messed up... i need to format it as (now, ....)
thanks agian..
VB Code:
Print #1, Date
This always worked for me...