![]() ![]() You can search for different colors simply by changing the wdYellow enumeration to the enumeration for whatever color you want.MegaStat is a plug-in for Microsoft Office Excel that provides a platform with which users First off, for those who don't know what is, it's a free, open-source LibreOffice was introduced in 2010 by a group of former OpenOffice If it is equal to wdYellow (an enumeration for the color yellow), then the text is selected and the macro is exited. The following macro uses Find and Replace to do the finding, but then it checks to see what the HighlightColorIndex property is for what was found. VBA allows you to detect the color used to highlight text, which is why this approach will work. The only way around this is to use a macro to do the finding. In all cases, Find Next will find any highlighted text, irrespective of color used for highlighting. Other folks have indicated that if you select some highlighted text (that is highlighted with the color you want to find) before displaying the Find and Replace dialog box, only that highlight color will be found when you click Find Next. Some information we've seen indicates that Word will only find whatever highlight color is specified in the Text Highlight Color tool, but this is not true. We haven't been able to find any reliable way around this. In other words, you cannot specify that you only want to find text highlighted in yellow or blue or green or any other color it is all treated the same. (Put the insertion point in the Find box, click Format, then click Highlight.) When you click on Find Next, Word selects the next highlighted text, regardless of the color used to highlight that text. When you use the Find and Replace dialog box, you can specify that you want to search for text that is highlighted. Word allows you to highlight text using different colors. Highlighting is accomplished by using the Text Highlight Color tool, which is available in the Font group on the Home tab of the ribbon. ![]() Highlighting doesn't change the font's color. ![]() When using the term "highlighting color," some people think that is referring to the color applied to some particular text it is not. Amir would like, specifically, to use Find and Replace to locate only text highlighted in yellow, having it ignore any other highlighting color used in the document.īefore getting into how to possibly do this, it is important to discuss terms for a moment. ![]() When he uses Find and Replace to find highlighted text, it treats all highlighting colors the same. Amir uses different highlighting colors throughout his documents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |