Check if there is more than one font color used in a document
Hi. I'm trying to figure out how to find if a document uses more than one font color.
(Using Word 2007 and 2013)
I also needed to find if the document uses any highlighted text. This way fairly easy. I used the 'find' command for that. I can't seem to replicate the same principle for font color though.
I tried looping through every character, which works - but incredibly slowly - I had to deem it inapplicable. I don't know how the find command manages to find highlighted text at light speed.. almost regardless of document's character count.
Does anyone have any idea how I can achieve this (check if there is more than one font color used throughout) just as quickly? The colors are unknown/nonimportant - the only important thing for me here is to make sure that the document uses only one color for font, throughout.
Thank you!
|