View Single Post
 
Old 02-10-2016, 03:51 AM
rocky2 rocky2 is offline Windows 10 Office 2013
Novice
 
Join Date: Feb 2016
Posts: 25
rocky2 is on a distinguished road
Default Find out if Page of Heading 1 has header

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
Reply With Quote