Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Programmatically Changing Conditional Formatting Returns Unexpected Results


View products that this article applies to.

This article was previously published under Q215156

↑ Back to the top


Symptoms

When you use Microsoft Visual Basic code to remove the background color property of the conditional formatting of a cell, you receive unexpected results when you try to re-apply the conditional formatting. Although the background color has been successfully removed, it still appears to be selected in the Format Cells dialog box.

↑ Back to the top


Workaround

Reset the formatting manually, and then select a new background color. To do this, follow these steps:
  1. On the Format menu, click Conditional Formatting.
  2. In the Conditional Formatting dialog box, click Format.
  3. In the Format Cells dialog box, click Clear, and then select a new background color. Click OK twice.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in Excel 2000.

↑ Back to the top


References

For more information about how to change conditional formatting, click Microsoft Excel Help on the Help menu, type change conditional formats in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB215156, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 215156
Revision : 5
Created on : 11/5/2003
Published on : 11/5/2003
Exists online : False
Views : 226