How to Detect Specific Page Breaks in Word VBA
Hello everyone,
I'm working on a Word VBA project and need to create a macro to identify if a specific page contains any type of page break (e.g., PageBreak, SectionBreakNextPage, SectionBreakOddPage, or SectionBreakEvenPage), excluding SectionBreakContinuous.
The issue is that using Text = Chr(12) does not differentiate between the various types of page breaks or section breaks.
Could someone please help me with an approach or code snippet to specifically detect the different types of page breaks and section breaks on a particular page?
Thank you in advance for your assistance!
|