Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2025, 03:18 AM
ADAL ADAL is offline How to Detect Specific Page Breaks in Word VBA Windows 10 How to Detect Specific Page Breaks in Word VBA Office 2021
Novice
How to Detect Specific Page Breaks in Word VBA
 
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
 

Tags
page breaks



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Detect Specific Page Breaks in Word VBA 2 frustrating bugs in Word 2019 draft view - page number in status bar and invisible page breaks sidr Word 19 01-15-2025 03:23 PM
MS Word - can I automate page breaks after every 150 words??? ninose Word 4 09-05-2020 12:13 PM
How to Detect Specific Page Breaks in Word VBA Avoid continous breaks turn into page breaks sponge Word 3 09-14-2017 12:11 PM
How to Detect Specific Page Breaks in Word VBA Hidden page breaks and section breaks jrasicmark Word 3 06-02-2014 11:28 PM
Deleted Section Breaks Changes Page Breaks Brantnshellie Word 0 02-01-2009 09:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:05 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