View Single Post
 
Old 01-03-2025, 03:18 AM
ADAL ADAL is offline Windows 10 Office 2021
Novice
 
Join Date: Dec 2023
Posts: 26
ADAL is on a distinguished road
Default 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!
Reply With Quote