SchemeColor Property

Microsoft Publisher Visual Basic

constant that represents the specified color of the current color scheme. Read/write.

PbSchemeColorIndex can be one of these PbSchemeColorIndex constants.
pbSchemeColorAccent1
pbSchemeColorAccent2
pbSchemeColorAccent3
pbSchemeColorAccent4
pbSchemeColorAccent5
pbSchemeColorFollowedHyperlink
pbSchemeColorHyperlink
pbSchemeColorMain
pbSchemeColorNone

expression.SchemeColor

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the color of the text in shape one on page one of the active publication to accent color five in the current color scheme.

ActiveDocument.Pages(1).Shapes(1).TextFrame _
    .TextRange.Font.Color.SchemeColor =
pbSchemeColorAccent5