Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-14-2014, 04:01 AM
gmayor's Avatar
gmayor gmayor is offline Need macro to merge files in Word and preserve formatting Windows 7 64bit Need macro to merge files in Word and preserve formatting Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

As Paul suggests, this is not at all straightforward. It also works better if you start with the first document and not a new document based on the normal template (or at least create your new document using the first document as a template and replace the document range with the content of your first document).

Inserting a section break is easy enough, you just add it to rng before you insert the file, then reset rng to the end of the document again.

Or you could use http://www.gmayor.com/Boiler.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting macro Ulodesk Word Tables 9 04-10-2012 06:37 PM
Need macro to merge files in Word and preserve formatting macro to pull data from multiple files psrs0810 Excel 2 10-25-2010 01:49 PM
Need macro to merge files in Word and preserve formatting Cut and paste a range of cells and preserve formatting StarWeaver Excel 1 03-02-2010 01:41 PM
Macro to export document sections to individual txt files? MJMR999 Excel Programming 0 02-18-2010 12:49 PM
Help-overwriting files-could it be macro virus? Timpotty Word 0 03-06-2009 04:28 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:50 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