View Single Post
 
Old 06-22-2016, 03:01 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Jen,

With the code you now have, to execute the merge, you'd add something like to following, to run on the output document post-merge.
Code:
With wdApp.ActiveDocument.Range
  While .Characters.Last.Previous Like "[" & vbCr & Chr(12) & "]"
    .Characters.Last.Previous.Delete
  Wend
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote