Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-29-2012, 07:44 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

Quote:
Originally Posted by macropod View Post
That's about it, though you don't need to use Selection:
Code:
Dim Rng As Range, iPage As Long
iPage = 2
With ActiveDocument
  Set Rng = .GoTo(What:=wdGoToPage, Name:=iPage)
  Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\page")
  Rng.Delete
End With
A nifty one.
Yes, I didn't wanna use Selection all the time and that was why I was asking.
I've thought of using Range.GoTo, but just didn't know to use wdGoToBookmark. Thanks for your example, always.
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 07:58 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