![]() |
|
#8
|
||||
|
||||
|
There's still no attachment, but you might try running the following macro on your mailmerge output document:
Code:
Sub Reformat()
Application.ScreenUpdating = False
Dim HdFt As HeaderFooter, Rng As Range
With ActiveDocument
If .Sections.Count > 1 Then
For Each HdFt In .Sections(.Sections.Count).Headers
If HdFt.Exists Then
HdFt.Range.FormattedText = .Sections(1).Headers(HdFt.Index).Range.FormattedText
HdFt.Range.Characters.Last.Delete
End If
Next
For Each HdFt In .Sections(.Sections.Count).Footers
If HdFt.Exists Then
HdFt.Range.FormattedText = .Sections(1).Footers(HdFt.Index).Range.FormattedText
HdFt.Range.Characters.Last.Delete
End If
Next
End If
Do While .Sections.Count > 1
Set Rng = .Sections(1).Range.Characters.Last
Rng.Delete
Rng.InsertBreak Type:=wdPageBreak
DoEvents
Loop
.Range.Characters.Last.Delete
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Cannot Update Page Numbers Only on Table of Contents
|
CrossReach | Word | 8 | 03-09-2016 01:18 PM |
Table of Contents - page numbers not aligned to the right in longer headings
|
krneki | Word | 3 | 08-17-2015 08:34 AM |
Align Mail Merged Numbers to the Decimal Point
|
HangMan | Mail Merge | 1 | 12-11-2013 02:32 PM |
Page Numbers in Table of Contents
|
MerRob54 | Word | 6 | 01-28-2013 03:37 AM |
decimal numbers not appearing properly in merged document
|
paulys | Mail Merge | 2 | 08-06-2012 08:15 AM |