Results 1 to 5 of 5

Thread: object variable or with block variable not set???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Posts
    169

    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")

  2. #2
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: object variable or with block variable not set???

    Did you try placing set in front of indexhtml and targethmtl as well?

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Posts
    169

    Re: object variable or with block variable not set???

    sorry, i made this sooo... stupid mistake again,

    thank you

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width