Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 10-10-2015, 09:23 PM
macropod's Avatar
macropod macropod is offline Mail Merge with correct format Windows 7 64bit Mail Merge with correct format Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,384
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge with correct format Mail Merge Format random 0s lmoir87 Mail Merge 2 07-31-2014 03:45 AM
Mail Merge with correct format Change Mail Merge Date Format from US to UK Evanaught Mail Merge 1 09-29-2013 08:02 PM
Mail Merge with correct format Issue with date format in mail merge document walshjod Mail Merge 4 11-28-2012 04:46 AM
Mail Merge with correct format Mail merge will not format date field generated by Excel IF statement borntorun75 Mail Merge 3 12-16-2011 06:28 AM
Mail Merge with correct format Correct Format needed TonyB Mail Merge 3 05-03-2011 01:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft