Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-20-2023, 09:02 PM
soroush.kalantari soroush.kalantari is offline How to write a macro which automatically realize whether, after editing a document, a table can be p Windows 10 How to write a macro which automatically realize whether, after editing a document, a table can be p Office 2016
Competent Performer
How to write a macro which automatically realize whether, after editing a document, a table can be p
 
Join Date: Jun 2021
Posts: 124
soroush.kalantari is on a distinguished road
Default How to write a macro which automatically realize whether, after editing a document, a table can be p

When working with word documents, sometime I use “page break” to ensure a table or a picture don’t extend beyond one page(see the attacment1, if I didn’t use page break, the table1 last rows would go to page2). And it is often the case that I modify my previous Word documents (writing some new paragraphs, deleting some text) and such changes may make page break redundant. (see the attacment2, which is attachment 1th with its a 2th paragraph deleted. In this case the entire table1 can be put in page1) I want to write a macro which automatically realize such “redundant page breaks” and delete them. Can you give me some guides on how it can be done.
Attached Files
File Type: docx attachment1.docx (16.1 KB, 9 views)
File Type: docx attachment2.docx (15.9 KB, 5 views)
Reply With Quote
 

Tags
page breaks, table



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a macro to count the number of lines between the start of a Word document to where the soroush.kalantari Word VBA 3 08-08-2021 09:23 PM
Protect from editing first page while having full editing capabilities in rest of document Waminathor Word 3 10-16-2019 08:22 AM
How to write a macro which automatically realize whether, after editing a document, a table can be p Automatically extract data from a table into another word document OfficeAssociate99 Word VBA 1 05-28-2017 11:19 PM
In Excel, how to automatically write a 3-attempt-exam final result in words? Abdulmunim Excel 9 04-21-2017 10:03 PM
Insert table in document - automatically updates second table in summary? Mechanic Word 2 08-01-2012 09:44 PM

Other Forums: Access Forums

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