Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

[RESOLVED] Placing an Image in a Word Document - First Page

$
0
0
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.)

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

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?

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>