PUB2002: Bluebird Not a Valid Color Scheme for Programmatic Use (294130)



The information in this article applies to:

  • Microsoft Publisher 2002

This article was previously published under Q294130

SYMPTOMS

If you try to use the "Bluebird" 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.
  5. 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("Bluebird2") ). 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


Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kbbug kbfix KB294130