Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 02-14-2016, 02:15 AM
rocky2 rocky2 is offline Find out if Page of Heading 1 has header Windows 10 Find out if Page of Heading 1 has header Office 2013
Novice
Find out if Page of Heading 1 has header
 
Join Date: Feb 2016
Posts: 25
rocky2 is on a distinguished road
Default

Could it be that the section number is not currect?
I use:
sectionNum = .Information(wdActiveEndSectionNumber)
Set secTemp = ActiveDocument.Sections(sectionNum)

This occurs when the correct heading is selected.
However, when I look at the text it has the text of another heading.
When I step through the document I see that the section numbers increase.

I also tried to see if the line above has a section break. I can't seem to compare to "^b". Could you do that?
Reply With Quote
 

Tags
headers, heading 1, section breaks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find out if Page of Heading 1 has header Can't remove page break between a Heading 1 and a Heading 2 Nathan8752 Word 3 08-31-2015 12:41 PM
Find out if Page of Heading 1 has header 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
Find out if Page of Heading 1 has header Need to change text in header to next Heading 1 Kanith Word 1 06-14-2011 03:35 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft