Fast way to Delete Microsoft Word Page

View previous topic View next topic Go down

Fast way to Delete Microsoft Word Page

Post by Admin on Sat Nov 24, 2007 1:49 pm

Open Visual Basic Editor (VBE)from your Microsoft Word "Tools | Macro". Make a new module from "Insert | Module"

Insert this code Code:
Sub Delete_Page()
ctiveDocument.Bookmarks("\Page").Range.Delete
End Sub

Run "Debug | Compile Project". Close your VBE & back to your document. For the next step, open "Tools | Macro | macros". Choose "Delete Page" option & click also "Organizer". Go to "Macro Project item" tab & copy "Module1" to "Normal1.Dot" Click OK to confirm. Now open "Tools | Customize" Go to "Commands" tab. On Categories section, click option "Macros". Next in "Commands" drag "Normal.Module1.Delete Page" into empty menubar. Right click your new button that you just made to change the name & the icon as well.
avatar
Admin
Admin

Number of posts : 137
Age : 33
Registration date : 2007-03-11

View user profile http://rulerz.niceboard.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum