Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-29-2012, 12:53 AM
tinfanide tinfanide is offline simpler way to delete a particular page in a Word document??? Windows 7 64bit simpler way to delete a particular page in a Word document??? Office 2010 32bit
Expert
simpler way to delete a particular page in a Word document???
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default simpler way to delete a particular page in a Word document???

Code:
Dim oRange As Range
Dim iPage As Integer
Dim iEnd1 As Integer, iEnd2 As Integer

iPage = 2

With ActiveDocument
    Selection.GoTo What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=iPage
    Set oRange = .Range(Start:=Selection.Range.Start, End:=.Bookmarks("\Page").Range.End)
    oRange1.Delete
End With
Just wonder if there's a simpler way to delete a particular page in a Word document.
Thanks in advance.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
simpler way to delete a particular page in a Word document??? Delete a page after Section Break Next Page Aston Word 9 04-27-2022 07:38 AM
Can't delete word document Sparky Word 1 04-18-2012 12:20 AM
simpler way to delete a particular page in a Word document??? 600 page document in word 2007 ggun123 Word 3 08-23-2011 06:54 AM
simpler way to delete a particular page in a Word document??? How to delete one PAGE in word 2002? Sleeper Word 2 06-28-2011 04:58 PM
delete subtitle on a word document damn thing will not go waynegr Word 0 07-09-2006 06:15 AM

Other Forums: Access Forums

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