Hi all,
I am having trouble using text files where I need to create/access a file in which the name resides in a variable. For example:
Set outFile = fso.CreateTextFile("d:\log0520.txt"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
works fine, but
dim logName As String
.
.
logName = ("d:\log" + CStr(date4) + ".txt"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
.
.
Set outFile = fso.CreateTextFile(logName)
gives an error : runtime error '13'/Type Mismatch
any help would be greatly appreciated.
Thanks
I am having trouble using text files where I need to create/access a file in which the name resides in a variable. For example:
Set outFile = fso.CreateTextFile("d:\log0520.txt"
works fine, but
dim logName As String
.
.
logName = ("d:\log" + CStr(date4) + ".txt"
.
.
Set outFile = fso.CreateTextFile(logName)
gives an error : runtime error '13'/Type Mismatch
any help would be greatly appreciated.
Thanks