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
Printable View
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
This will detect if the current document contains a header.
VB Code:
If ActiveDocument.Sections(1).Headers.Item(wdHeaderFooterPrimary).Exists = True Then MsgBox "This document contains a Header" End If