View Single Post
 
Old 10-10-2015, 09:23 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
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

Try running just the following stripped-down code. It should produce a series of new documents - one per Section of your source document, with just one copy of each Section's content per new document.
Code:
Sub emailmergewithattachments()
Dim Source As Document, wdDoc As Document, oRng As Range, j As Long
Set Source = ActiveDocument
For j = 1 To Source.Sections.Count - 1
  Set wdDoc = Documents.Add
  Set oRng = wdDoc.Range
  oRng.Collapse 1
  'oRng.FormattedText = Source.Sections(j).Range.FormattedText
  Source.Sections(j).Range.Copy
  oRng.Paste
Next j
MsgBox Source.Sections.Count - 1 & " messages have been sent."
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote