Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2016, 03:35 AM
macropod's Avatar
macropod macropod is online now Find out if Page of Heading 1 has header Windows 7 64bit Find out if Page of Heading 1 has header Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Rocky2: Please don't ask the same question in multiple threads. I've merged the two threads concerned.

Section numbers returned by .Information(wdActiveEndSectionNumber) will be correct. whether you're Set secTemp = ActiveDocument.Sections(sectionNum) is 'correct' depends on what you're referencing for .Information(wdActiveEndSectionNumber). Since you haven't posted the relevant code, or said what you're expecting, there's know way for anyone here to know one way or the other.



Why do you want to check the character before the Heading? Graham has already given you robust code that works for all headers, regardless of whether the preceding character is a Section break.

FWIW, Section breaks & page breaks have an ASCII value of 12, whilst column breaks have an ASCII value of 14.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

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 04:02 AM.


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