I'm looping over a document, finding all the hyperlinks, checking to see if they contain the word "Figure" or "Table" and if they do, removing the hyperlink and changing the text to black. This works, but it only catches some of the hyperlinks on the first run. Then it catches more on the next run, more on the next run, etc. I have to run it 5-6 times to catch all instances.
How can I fix this to catch all instances on the first run?
Please Login or Register to view this content.
Bookmarks