XL5: Can't Set ColorIndex Property of Style Class

ID: Q141785


The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0


SYMPTOMS

In Microsoft Excel, when you use Visual Basic for Applications and you attempt to set the color for the font of the default style, the color will always be set to shadow as in the following example:


   ActiveWorkbook.Styles("Test").Font.ColorIndex = 1 


WORKAROUND

Set the ColorIndex property to xlAutomatic. All other values will create a shadow, but they will not set the color of the font.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c.

Additional query words:

Keywords : xlwin
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type :


Last Reviewed: October 25, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.