Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating header fields deletes image

Status
Not open for further replies.

DanDarwood2004

Programmer
Sep 23, 2004
7
GB
I am successfully updating fields within the header of a document using the below code:

Code:
Dim myStoryRange
For Each myStoryRange In objWord.StoryRanges
    myStoryRange.Fields.Update
    While Not (myStoryRange.NextStoryRange Is Nothing)
        Set myStoryRange = myStoryRange.NextStoryRange
        myStoryRange.Fields.Update
    Wend
Next myStoryRange

but the problem I am having is that my header contains an image and when this code runs the image is removed/deleted. I have tried various images and placement in the header but the same thing happens. Can anyone help or have any ideas of what to try?

Thanks,

Dan.
 
I have found the answer in another thread: set the properties of the image layout to Behind text.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top