![]() |
|
#1
|
|||
|
|||
|
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
Is there another field that could show me whether the page has a header? Thanks, Rocky |
| Tags |
| headers, heading 1, section breaks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Can't remove page break between a Heading 1 and a Heading 2
|
Nathan8752 | Word | 3 | 08-31-2015 12:41 PM |
Can I unter the last heading in a footer, regardless of what level the header is?
|
Huffle | Word | 2 | 09-28-2014 03:48 PM |
| include heading text in header | eNGiNe | Word | 2 | 03-06-2013 12:24 AM |
| How to have a heading 1 file automatically appear in each header of any page? | expert4knowledge | Word | 2 | 09-16-2012 10:38 AM |
Need to change text in header to next Heading 1
|
Kanith | Word | 1 | 06-14-2011 03:35 PM |