The reason is why you see the high usage in that case (the scrolling) is also explainable. It is not because of that loop though. When a mark is found, it will look for the next one. It does that by moving character for character until there is a hit. That causes the high usage of Word.
I am really annoyed by the Word 365 lately. They change stuff in the S&R on a regular base, wrecking havoc. Not for 'normal' usage, but for these kind of things it does. I did make some changes to make it more robust and less dependable on the Word functions though.
|