Microsoft KB Archive/294130

= PUB2002: Bluebird Not a Valid Color Scheme for Programmatic Use =

Article ID: 294130

Article Last Modified on 1/6/2006

-

APPLIES TO


 * Microsoft Publisher 2002 Standard Edition

-



This article was previously published under Q294130



SYMPTOMS
If you try to use the &quot;Bluebird&quot; color scheme programmatically, you receive the following error message:

Microsoft Visual Basic

Run-time error '9':

Subscript out of range

Bluebird is the default color scheme for Microsoft Publisher.



CAUSE
Bluebird does not have a color scheme value in the Publisher 2002 object model.



WORKAROUND
If you must use the color scheme Bluebird, you can create a duplicate color scheme based on Bluebird and rename it.

To Create a Custom Color Scheme

 * 1) On the Format menu, click Color Schemes.
 * 2) Click to select the color scheme Bluebird.
 * 3) Click the Custom color scheme link at the bottom of the task pane.
 * 4) Click the Save Scheme button.

You are prompted to name the scheme. You can use a name such as Bluebird2 or any other name of your choice. However, you cannot use Bluebird as a name, because it already exists.
 * 1) Click OK.

Your custom color scheme is now available and listed alphabetically in the Available schemes box on the Standard tab of the Color Scheme dialog box. The set of scheme colors for your custom color scheme also appears under Scheme Colors when you click Fill Color on the Formatting toolbar.

You can refer to this custom scheme by name in your code (for example, Application.ColorSchemes(&quot;Bluebird2&quot;) ). Custom schemes names are local computer registry settings and do not accompany the document if opened on a different computer.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Custom color schemes are stored in the Windows registry in the following key:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Publisher\ColorSchemes

Additional query words: OM, Programming, Macro, VBA

Keywords: kbbug kbfix KB294130

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.