J
Jason Stengren
I'm wondering if this is possible, and if someone could provide (or
point me to) some sample code that would help me build a macro to
accomplish this task...
Let's say I have a 200 page document. The first chapter must remain
static, but all remaining chapters (defined by section breaks) need to
be 'cleaned up' by deleting ALL even-numbered pages.
I would like to bind this to a macro to automate this massive page
deletion process. Ideas?
PS: I've found a code snippet from another thread... how could you
modify it to only delete even pages?
Sub pages_go_away()
Selection.Goto what:=wdGoToPage, which:=wdGoToAbsolute, Count:=4
For counter = 4 to 21
ActiveDocument.Bookmarks("\page").Select
Selectuion.Delete
Next counter
End Sub
point me to) some sample code that would help me build a macro to
accomplish this task...
Let's say I have a 200 page document. The first chapter must remain
static, but all remaining chapters (defined by section breaks) need to
be 'cleaned up' by deleting ALL even-numbered pages.
I would like to bind this to a macro to automate this massive page
deletion process. Ideas?
PS: I've found a code snippet from another thread... how could you
modify it to only delete even pages?
Sub pages_go_away()
Selection.Goto what:=wdGoToPage, which:=wdGoToAbsolute, Count:=4
For counter = 4 to 21
ActiveDocument.Bookmarks("\page").Select
Selectuion.Delete
Next counter
End Sub