I have the following code at the beginning of where I create a Word Document in my VB6 program:
(I have the Word Library as a reference.)
I then add several pages of addresses and names and such.
My problem is that the image (header.jpg) appears at the END of all the addresses, etc. I want it to be the
VERY first thing on the FIRST page of my document.
I assume it has something to do with .Selection.Range, but I can't figure that one out.
Any suggestions?
(I have the Word Library as a reference.)
Code:
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
Set WordApp = New Word.Application
Set WordDoc = WordApp.Documents.Add(DocumentType:=wdNewBlankDocument)
WordApp.Selection.Range.InlineShapes.AddPicture (App.Path & "\header.jpg")
My problem is that the image (header.jpg) appears at the END of all the addresses, etc. I want it to be the
VERY first thing on the FIRST page of my document.
I assume it has something to do with .Selection.Range, but I can't figure that one out.
Any suggestions?