Trying to construct a macro that searches a course document for all highlighted text and applies bold to all of the text in the current document that matches that highlighted text. Original macro worked fine until it ran into highlighted text that exceeded 255 characters. I found some code online that gets around this limitation, but it uses a loop, and I cannot get it to work with the initial Do While .Execute loop – it stops after the first highlighted text it finds. My brain can’t seem to work out how to incorporate the excess 255 code with the original code. Can someone advise what to do?
Code I have so far is attached.
Code I have so far is attached.