Home > Article > Software Tutorial > How to delete blank pages in word document
Here’s how to delete blank pages in a Word document: Switch to Page Layout view and delete the blank pages. Use the Find and Replace feature to remove consecutive blank paragraph marks. Use a macro to remove text boxes that contain no text, including blank pages.
How to delete blank pages in Word documents
When processing Word documents, sometimes unwanted Blank pages affect the clarity and aesthetics of the document. This article will detail how to delete blank pages in Word documents.
Method 1: Use Page Layout View
Method 2: Use the Find and Replace function
Method 3: Use macros
<code>Sub DeleteBlankPage() Dim ws As Word.Shape For Each ws In ActiveDocument.Shapes If ws.Type = wdShapeTypeTextFrame Then If ws.TextFrame.HasText = False Then ws.Delete End If End If Next ws End Sub</code>
This macro will delete all text boxes that do not contain text, including blank pages.
Note:
If none of the above methods can remove the blank pages, try the following:
The above is the detailed content of How to delete blank pages in word document. For more information, please follow other related articles on the PHP Chinese website!