ColorSchemes.Item property (Publisher)

Returns the specified ColorScheme object from a ColorSchemes collection. Read-only.

Syntax

expression.Item (Index)

expression A variable that represents a ColorSchemes object.

Parameters

Name Required/Optional Data type Description
Index Required Variant The color scheme to return. Can be either the name of the color scheme as a string or the corresponding PbColorScheme constant.

Example

This example sets the color scheme of the active publication to the Aqua color scheme.

ActiveDocument.ColorScheme = ColorSchemes.Item(Index:=pbColorSchemeAqua)

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.