Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Earl B
 
Posts: n/a
Default More header help, please? IncludePicture with mailmerge

Found it - with a little help from before.

After performing the merge, I needed to update each field individually:

Dim objStory As Microsoft.Office.Interop.Word.Range
Dim objField As Microsoft.Office.Interop.Word.Field

For Each objStory In docDestination.StoryRanges
For Each objField In objStory.Fields
objField.Update()
Next

' The header/footer ranges can be linked in a way
' that is not revealed by the outer For Each
' so we have to do the following
While Not (objStory.NextStoryRange Is Nothing)
objStory = objStory.NextStoryRange
For Each objField In objStory.Fields
objField.Update()
Next
End While
Next objStory

objField = Nothing
objStory = Nothing
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge with separate Source Header document Singlej Mailmerge 2 March 29th 06 02:19 PM
On merge,"Same as Previous" re-enabled and section2 header overwri Warewell Mailmerge 1 November 30th 05 04:15 PM
how do i suppress the header record in mailmerge Chris Swales Mailmerge 8 November 12th 05 08:58 PM
Nested IncludePicture troubles in header table Birgit Page Layout 7 March 1st 05 08:20 AM
Copying a letter header into a mailmerge template dixie Mailmerge 4 December 20th 04 08:17 AM


All times are GMT +1. The time now is 07:47 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"