jat098
10-06-2012, 08:01 AM
I have two images programmatically in a Word document. One goes to the far right (outside the margin) and should be on both the first and subsequent pages. Another goes at the bottom of the first page only.
The second image always ends up on the second page, not the first.
This problem only occurs in Word 2007 VBA. In 2010, the code works fine.
For both images, I am using this code:
With ThisDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Shapes.AddPicture (FileName:=GraphicLocation, LinkToFile:=False, SaveWithDocument:=True)
where GraphicLocation is the path to the image file.
Any clue as to why this might be happening?
Thanks
The second image always ends up on the second page, not the first.
This problem only occurs in Word 2007 VBA. In 2010, the code works fine.
For both images, I am using this code:
With ThisDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Shapes.AddPicture (FileName:=GraphicLocation, LinkToFile:=False, SaveWithDocument:=True)
where GraphicLocation is the path to the image file.
Any clue as to why this might be happening?
Thanks