How to remove the specific attribute from XmlDocument?

How can I write an Microsoft Word macro to remove occurrences of the All Caps font attribute and replace the affected text ONLY with real capital letters leaving other text unchanged?

  • Answer:

    Use Word's find option instead. On the menu bar click Edit, and Find. In the Find what box type an asterisk (*) [without the parentheses], tick Use Wildcards, under Format (if you can't see Format click the More button), select Font and tick All Caps. This looks for all content (*) that has All Caps font setting applied to them. Also in the find tab Word has an option that says "Highlight all items found in" this actually selects all items in the find box. Tick that option and click "Find All" Close the find dialog box but don't click anywhere in your document otherwise you will deselect the words you have just found. On the menu bar go into Format, Change Case and select Upper Case. This will remove the All Caps but the text will still be in upper case. This would not work in a Word 2003 Macro, because the macro recorder does not record the formatting. This works in Word XP and Word 2003 but in Word 2007 Microsoft have changed the "highlight all items found" to a proper "highlight" option rather than select :(

wiki.answers.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.