Hi, thanks for your response.
I just tried the macro, and it seems to give me an infinite loop, with the XE codes repeating one right after another. I've experimented with modifying the code a few different ways, but I can't get it to stop looping. It also seems to put in a character that looks like a question mark in a box. I tried to copy and paste it here, but I can't.