Writing to a word doc using Excel VBA

  • Hi,

    I'm brand new to VBA coding and this forum and have probably a very easy question. I have a small project that needs to create a word document from Excel data. I have succeeded in creating the documents from a template and can write to the document but i need to know the following. How can I position the cursor within the word doc to write to a specific place within the file. I am using the find function to locate text in the doc and would like to tab from the end of the found text and then insert the data. Any help or pointers would be appreciated.
    Thanks,
    Gus

  • Re: Writing to a word doc using Excel VBA


    Managed to figure it out. Not sure if it's the best way but i have used bookmarks in the word doc and use Selection.GoTo bookmark to position the cursor at the dsired point. works well
    cheers

Participate now!

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