PDA

Click to See Complete Forum and Search --> : Detecting Headers


Jumpercables
Oct 14th, 2005, 11:00 AM
Is it possible to detect if a header exist in a word document? And if so what type of properties can you get on that header (i.e size, location,...). This would be in Office Xp.


Thanks

RobDog888
Oct 18th, 2005, 02:24 PM
This will detect if the current document contains a header.
If ActiveDocument.Sections(1).Headers.Item(wdHeaderFooterPrimary).Exists = True Then
MsgBox "This document contains a Header"
End If