View Single Post
 
Old 02-01-2022, 11:04 PM
NLDLC NLDLC is offline Windows 10 Office 2021
Novice
 
Join Date: Jan 2022
Posts: 5
NLDLC is on a distinguished road
Default

Hi. This seem to have helped address the random pages printing. Thank you!

That said, i'm now running into the issue that pages that contain (but don't match) are printing. For example, "Word1" is in the array so "Word1", "Word10", "Word11", "Word 12", etc. also print.

I attempted to change:
Code:
With oStory.Find
to

Code:
.MatchWholeWord = True
With oStory.Find
however doing this didn't seem to allow the array to execute for "Word2", "Word3", "Word4", etc.

Is there a better way to require the find command to match the exact word?
Reply With Quote