I got much closer to solution of a problem with this interchange recently:
I'm creating a Word document by taking a very large page of html in a browser, selecting everything, copying it, and then pasting it into Word. Then, I want to assign different styles to the different fonts in the new Word document, so that I can easily change the appearance of the document later.
The VBA code in the above link worked great to search for a font name and size, and assign a style to those paragraphs. But there is still a problem: If, for example, I search for Verdana 10pt and assign it a style "Book_normal", now the Verdana text has the style, but it still *appears* as Verdana 10pt, even though "Book_normal" is Garamond.
I found that the Style Inspector now shows that the changed text is of the Style Book_normal, but *with* Text Level Formatting "Plus Verdana 10 pt."
If I clear the text level formatting, then we're fine, but I need to do that programmatically. I tried using the Styles box to select all 4000 instances of "Book_normal" and then pressing "Ctrl-space" to clear the text level formatting, but it's not reliable because there are so many instances, and I suspect that this can easily be done with VBA. I have not been able to find the code to do that.
Any help would be appreciated. I hope I described the problem well.