Place Excel data at the end of a Word Document

W

Webtechie

Hello,

I've created an application that processes some data in Excel using forms
and Excel VBA.

I now need to create reports based on the data in Excel. I have been able
through an Excel VBA macro to open a word document and update some bookmarks.

I now need to go to the end of the document and place

1) a string
2) an image

However, it keeps inserting evrything at the beginning of the Word document.

How do I open Word and go to the end of a document to place an text string
and an image?

Thanks.

Tony
 
D

David Horowitz

Tony,
Generally, you can use Document.Content.InsertAfter "new text".
Document.Range.InsertAfter also works.
In Word, it's working with the Range object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top