I am not even sure it is possible and I have searched.......
Can you limit a VBA script to certain pages of a word document?
Scenario -
Every day I create documents which range from 1 to hundreds of pages.
The beginning and end of the documents do not need to be included on the script I am running and in fact, makes my job more difficult as I must clean it all up.
The intro pages are rarely the same amount, the the last page is always that.....the last page.
I would like to be able to limit the script to a specific range of pages so that I don't have to clean up the results of my script.
Currently, the code opens up with
With ActiveDocument
StrIn = .Content.Text
So....I thought Hey.....what about using bookmarks.
And then I tried......
ActiveDocument.Bookmarks("text").Range.Select
With Selection
StrIn = Selection.Range.Text
This string is called over and over
My poor attempt at coding failed.
Any suggestions?
Bookmarks