T
TR
I have 400 + large documents that were genereated automatically. They
all have several extra page breaks at specific locations that are
causing blank pages. I already have code that loops a list and opens
each report in turn. I'd like to programmaticlly remove the specific
page breaks. It would take quite awhile to regenerate the docuemnts, so
I am hoping that programmatically modifying them will be faster. I'm
pretty good with Access VBA and VB, but not so familiar with Word and
its manipulation.
I have a bookmark I can go to which is after the pagebreak.
I want to step backwards to the 2nd preceeding page break and remove it.
Any suggestions for doing this? Thus far I have:
Selection.GoTo what:=wdGoToBookmark, Name:="SectionIV_TOC"
Selection.GoToPrevious wdGoToPage
Selection.GoToPrevious wdGoToPage 'this puts me on the page that has the
pagebreak at the bottom that I want to remove
How to select/move to the page break and delete it?
Thanks,
Tom
all have several extra page breaks at specific locations that are
causing blank pages. I already have code that loops a list and opens
each report in turn. I'd like to programmaticlly remove the specific
page breaks. It would take quite awhile to regenerate the docuemnts, so
I am hoping that programmatically modifying them will be faster. I'm
pretty good with Access VBA and VB, but not so familiar with Word and
its manipulation.
I have a bookmark I can go to which is after the pagebreak.
I want to step backwards to the 2nd preceeding page break and remove it.
Any suggestions for doing this? Thus far I have:
Selection.GoTo what:=wdGoToBookmark, Name:="SectionIV_TOC"
Selection.GoToPrevious wdGoToPage
Selection.GoToPrevious wdGoToPage 'this puts me on the page that has the
pagebreak at the bottom that I want to remove
How to select/move to the page break and delete it?
Thanks,
Tom