narmi2
Jul 22nd, 2005, 11:37 AM
hello
I have the following code which reads a file into the header
Dim oSec As Word.Section
Set oSec = ActiveDocument.Sections(1)
oSec.PageSetup.DifferentFirstPageHeaderFooter = True
oSec.Headers(wdHeaderFooterFirstPage).Range.InsertFile "C:\Program Files\Microsoft Office\Templates\TheHeader.doc"
but this leaves an extra line under the text inserted in the header. How do I remove that extra line in the header?
thanks
I have the following code which reads a file into the header
Dim oSec As Word.Section
Set oSec = ActiveDocument.Sections(1)
oSec.PageSetup.DifferentFirstPageHeaderFooter = True
oSec.Headers(wdHeaderFooterFirstPage).Range.InsertFile "C:\Program Files\Microsoft Office\Templates\TheHeader.doc"
but this leaves an extra line under the text inserted in the header. How do I remove that extra line in the header?
thanks