Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-06-2014, 05:16 AM
Dimsok Dimsok is offline Delete blank pages Windows XP Delete blank pages Office 2007
Advanced Beginner
Delete blank pages
 
Join Date: Sep 2014
Location: exUSSR
Posts: 50
Dimsok is on a distinguished road
Default Delete blank pages

Is there a way to delete blank pages in the end of document? I did try that:



Public Sub DeleteBlankPage()

Selection.GoTo What:=wdGoToBookmark, Name:="\page"

If isBlankSelection Then

Selection.Delete

End If

End Sub

Public Function BlankPageSelection()

For Each c In Selection.Characters

If (c <> vbCr And c <> vbTab And c <> vbFormFeed And c <> " ") Then

BlankPageSelection = False

Exit Function

End If

Next

BlankPageSelection = True

End Function


Read more :

but no sucess
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete blank pages deleting blank pages thauser Word 3 05-27-2014 01:56 AM
Delete blank pages Deleting blank pages Microsoftenquirer1000 Word 14 08-27-2012 01:24 PM
delete blank pages from mail merge document blusea Word 0 12-17-2010 06:10 PM
How do you delete a blank page at end? aerophil Word 4 10-24-2009 05:04 AM
hidden blank pages mljm Word 3 06-19-2009 03:18 AM

Other Forums: Access Forums

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