Quote:
Originally Posted by gmayor
Reboot the PC and try the code I posted again. Word VBA has a bad habit of holding on to error conditions, especially with regard to endless loops as in the case of your original code.
|
Hi, thanks for your response. I rebooted the computer and I just tried it again now and it did the same thing. It's kind of hard to explain what it's doing with seeing it, but it inserts one XE code with the text entry and puts the curly brackets in red. Then it inserts another XE code directly after that, also with the curly brackets in red but with XE XE and the text entry, then another one directly after that with XE XE XE and the text entry, etc. It seems to keep inserting XE codes one right after another but the number of XEs increases with each code it inserts.
Maybe it's just one of those weird things. I haven't done much VBA in a while, not that I was ever very good at it, of course, but I do remember seeing some very strange things that just didn't seem to make any sense.