Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-02-2021, 01:01 PM
Charles Kenyon Charles Kenyon is offline Deleting specific pages from Word with VBA Windows 10 Deleting specific pages from Word with VBA Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,465
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

They will not necessarily be blank sections but rather section breaks that generate a blank page.

A section break controls lots of formatting in the section before the break. An odd-page or even-page or next-page section break will give you a new page. The even-page and odd-page breaks may generate a blank page. When to use Section breaks in Microsoft Word

How are you producing these invoices that they have these section breaks? Mail merge? If so, look to your primary merge document.

Something other than section breaks may also be causing blank pages. See Deleting “Blank” Pages by Suzanne Barnhill, MVP.


I am not going to attempt to write a macro on this. I think it is beyond my comfort level. However, to have such a macro, you need to analyze your situation and what it is you need the macro to do for you. This analysis needs to be in terms of the document structure rather than what it is you are seeing. A macro can only work with the Word's understanding of what is in the document.
Reply With Quote
 

Tags
blank pages, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting specific pages from Word with VBA Deleting Characters in a specific location in Word 2010 ppayaw Word VBA 8 12-13-2016 08:11 AM
Copying specific columns of a table to WORD and deleting rows ffinley Word VBA 5 12-07-2015 04:01 PM
Deleting specific pages from Word with VBA Deleting A blank Line that has a specific heading style , word 2010 & 2013 SteveWcg Word 5 01-08-2014 10:37 PM
Deleting specific pages from Word with VBA deleting pages paul_pearson Word 4 03-22-2013 12:18 AM
Deleting specific pages from Word with VBA Deleting blank pages Microsoftenquirer1000 Word 14 08-27-2012 01:24 PM

Other Forums: Access Forums

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