Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-31-2018, 01:38 PM
macropod's Avatar
macropod macropod is offline Combining documents loses footer info. Windows 7 64bit Combining documents loses footer info. 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

Try changing:
Code:
                With Rng
                    .Collapse wdCollapseEnd
                    Call LayoutTransfer(DocSrc, DocTgt)
                    .FormattedText = DocSrc.Range.FormattedText
                    .Collapse wdCollapseEnd
                    '.Fields.Add Range:=Rng.Sections(-1).Footers(wdHeaderFooterPrimary).Range., Type:=wdFieldEmpty, Text:="INCLUDETEXT &""C:\\MERGEDOCS\\01_All\\Footer.docx"","
                    '.InsertBreak Type:=wdSectionBreakNextPage
                End With
to:
Code:
                With Rng  
                    .Collapse wdCollapseEnd 
                    .InsertBreak Type:=wdSectionBreakNextPage 
                    .Collapse wdCollapseEnd 
                    Call LayoutTransfer(DocSrc, DocTgt) 
                    .FormattedText = DocSrc.Range.FormattedText
                End With
and reinstating:
Code:
                For Each HdFt In .Sections(.Sections.Count - 1).Footers 
                    With HdFt.Range 
                        .FormattedText = DocSrc.Sections.Last. Footers(HdFt.Index).Range.FormattedText 
                        .Characters.Last.Delete 
                    End With 
                Next
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
combine, documents, footer



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining documents loses footer info. combining word documents jesselscott Word 1 04-28-2015 09:55 AM
Combining documents loses footer info. Combining Footer Sections williams Word 6 03-04-2015 09:43 AM
Combining/merging documents hawkeyefxr Word 11 08-03-2012 03:01 AM
Combining documents loses footer info. Combining documents of different formats Blaie Word 1 06-04-2011 06:35 PM
Combining documents loses footer info. Combining Word Documents dms997 Word 5 02-26-2011 03:25 AM

Other Forums: Access Forums

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