In that case you would use:
Dim source As Document, target As Document, hrange As Range Set target = ActiveDocument Set source = Documents.Open("path\filename") Set hrange = source.Sections(1).Headers(wdHeaderFooterPrimary).Range hrange.End = hrange.End - 1 target.Sections(1).Headers(wdHeaderFooterPrimary).Range = hrange
-- Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis.
Doug Robbins - Word MVP
"Antonhino" <antoine.andre[ at ]gmail.com> wrote in message news:1140443015.799379.95500[ at ]g14g2000cwa.googlegroups.com...
[Quoted Text] > Thanks for your answer, > but in fact, I want to insert the header of an existing document into > the active document. > > Antonhino >
|