PUB2002: Bluebird Not a Valid Color Scheme for Programmatic Use (294130)
The information in this article applies to:
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- On the Format menu, click Color Schemes.
- Click to select the color scheme Bluebird.
- Click the Custom color scheme link at the bottom of the task pane.
- 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. - 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.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 1/6/2006 |
---|
Keywords: | kbbug kbfix KB294130 |
---|
|