Microsoft KB Archive/165493

= XL97: Conditional Formats May Not Work on Rich Text Cells =

Article ID: 165493

Article Last Modified on 10/21/2000

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q165493





SYMPTOMS
If you apply a Conditional Number format to a cell, the formatting that you specified may not be applied to the entire cell contents when the condition for that format is met in the cell.



CAUSE
The formatting that you specified for a Conditional Number format may not be applied to the entire cell contents if the cell contains Rich Text formatting.



RESOLUTION
If you want the formatting that you specified for a Conditional Number format to be applied to the entire cell contents, remove any Rich Text formatting in the cell.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
The following steps demonstrate the issue described in the "Symptoms" section:

  Open a new worksheet and enter the following in Sheet1:   A1: this is rich-text  Double-click cell A1 to activate in-cell editing.

NOTE: If you have turned off the option to allow editing directly in cells, you need to turn it back on for this demonstration. To do this, click Options on the Tools menu; click the Edit tab, and then click to select the "Edit directly in cell" check box. Highlight just the "rich-text" portion of cell A1, and then click Cells on the Format menu. In the Format Cells dialog box, click Bold in the Font Style list, and then click OK.</li> Press ENTER. Note that the "rich-text" portion of cell A1 is bold.</li> Select cell A1, and then click Conditional Formatting on the Format menu.</li> In the Conditional Formatting dialog box, set the first drop-down box to "Cell Value Is," set the second drop-down box to "equal to," and then type this is rich-text in the RefEdit box to the right of the second drop-down box.</li> Click Format. On the Font tab in the Format Cells dialog box, click a Red color in the Color drop-down box, and then click OK.

This will set the Conditional Formatting for the cell so that when cell A1 contains the text this is rich-text, the text in the cell will change to Red.</li> Click OK in the Conditional Formatting dialog box.</li></ol>

NOTE: Only the "this is" portion of cell A1 is changed to Red.

<div class="references_section">