Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 04-26-2022, 05:16 PM
Astrid Astrid is offline Delete a page after Section Break Next Page Windows 10 Delete a page after Section Break Next Page Office 2019
Novice
 
Join Date: Apr 2022
Posts: 9
Astrid is on a distinguished road
Default

My mistake, it is not the formattedtext property, it is the deleting of the actual section break:

Code:
  While .Sections.Count > 1
    .Sections.First.Range.Characters.Last.Delete
  Wend
It is easy to reproduce:
1. Create a document with two sections
2. First section with different first page, in header first page add two bookmarks
3. Add second section, only primary headers/footers, both empty
4. Select last paragraph first section, and first second section
5. Run the code
6. Bookmarks in first section are gone

Is it possible to solve this?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
why the "section break-next page" is switched to "section break-continuous"? Jamal NUMAN Word 6 12-14-2011 03:35 PM
Delete a page after Section Break Next Page Page break - next page Commodore Word 7 07-17-2011 12:09 AM
Delete a page after Section Break Next Page Section Break Continuous: doesn't affect the format of the page numbering Jamal NUMAN Word 2 06-22-2011 04:46 PM
Delete a page after Section Break Next Page Page numbering starting on 2 after section break pamm13 Word 1 06-22-2011 11:10 AM
Delete a page after Section Break Next Page Anchoring a section break to the bottom of a page, and having a table pass over it??? h3rk Word Tables 1 11-20-2009 07:34 AM

Other Forums: Access Forums

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