#1
|
|||
|
|||
Header/Footer lost with InsertFile
Hello all,
Using the below code starting in a section where the Header/Footer is linked to the previous section is removing the link and causing the page numbering to delete. Is there a way to modify this code to link to Header and Footer to the previous section after each file is inserted? I cannot figure out how to get '.HeaderFooter.LinkToPrevious' to work. Any ideas? Code:
ChDir ActiveDocument.Path myName = Dir("03*.doc*") While myName <> "" With Selection .InsertFile FileName:=myName, ConfirmConversions:=False .InsertBreak Type:=wdSectionBreakNextPage .Collapse Direction:=wdCollapseEnd End With myName = Dir() Wend Brock |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Header & Footer Question - Help Need! | Valentino.R | Word | 9 | 11-29-2010 08:23 AM |
Different Header but same Footer | Karthick | Word | 1 | 11-12-2010 09:08 AM |
How do I remove header and footer | captn1 | Word | 2 | 09-04-2010 04:14 PM |
header/footer question | Bobosmite | Word | 4 | 06-14-2010 07:22 AM |
Header and footer questions | boutells | Word | 0 | 07-21-2009 01:57 AM |