object variable or with block variable not set???
Hello all, what's wrong with this code snipplet?
I get object variable or with block variable not set error.
Code:
Dim fso As Object
Dim indexhtml As Object
Dim targethmtl As Object
Set fso = CreateObject("Scripting.FileSystemObject")
indexhtml = fso.createtextfile(strprojectDir & "\index.html")
targethmtl = fso.createtextfile(strprojectDir & "\target0.html")
Re: object variable or with block variable not set???
Did you try placing set in front of indexhtml and targethmtl as well?
Re: object variable or with block variable not set???
Both indexhtml and targethmtl are declared as Object so either must be set :
Set indexhtml = ...
Set targethmtl = ...
Re: object variable or with block variable not set???
sorry, i made this sooo... stupid mistake again,
thank you
Re: object variable or with block variable not set???