Hi,
I am trying to find using VBA weather when I have a HEading 1 - the page has a header. I want to make sure it doesn't.
I tried:
Code:
sectionNum = .Information(wdActiveEndSectionNumber)
Set secTemp = ActiveDocument.Sections(sectionNum)
If secTemp.Headers(wdHeaderFooterFirstPage).Exists = True Then
'page has header"
End If
But I always get True.
Is there another field that could show me whether the page has a header?
Thanks,
Rocky