Write Data To Word

  • Hello all,

    my code is modified from the thread below.

    I already have the word like created and the bookmarks added.
    I recieve an error "User defined type not defined" on this line.

    Dim wdApp As Word.Application

    I have a word document created with bookmarks (First, Mid, Last) in it already
    Ive tried it with my word file open as well as closed and still no luck.

    Anyone have any ideas?



  • Re: Write Data To Word

    Have you set reference to the Word library?

    If you haven't, in VBE go to Tools > References and tick the Microsoft Word 11.0 Object Library reference.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!