If I can't find a fast solution, I will try to revert the last Windows update. I'm not looking forward to having to rewrite a lot of code to get around what is apparently a new bug. Unfortunately, I have many other cases that do a find-and-replace where attributes are part of the operation. I finally rewrote the code to only use the find part and then use a While. So, I tried it specifying that the replacement text should be "red". The slashes disappear, but no highlighting occurs.ĭoing it manually from the Word window has the same problem so it's not just a VBA issue. I specify highlighting the text on the replacement. The replacement text is "\2" which should remove the slashes around the name. One example is a FInd-and-Replace with the search text "(/)(*)(/)" with a font of "MS Trebuchet" specified to find all cases of "/name/" in that font. When I tried to do them manually from the Word document window, they failed there as well. I have a VBA application that helps me produce books and many of its operations just stopped working correctly. Also, the Replace button does not advance to the next item. In particular, if you try to specify font attributes in a replace, they are usually ignored. After the latest update to Windows, Find-and-Replace stopped working correctly for many cases.
0 Comments
Leave a Reply. |