Document.ColorScheme property (Publisher)

Returns or sets the ColorScheme object that represents the scheme colors for the specified publication. Read/write.

Syntax

expression.ColorScheme

expression A variable that represents a Document object.

Return value

ColorScheme

Example

This example displays the name of the current color scheme for the active publication.

With ActiveDocument.ColorScheme 
 MsgBox "The current color scheme is " & .Name & "." 
End With

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

ActiveDocument.ColorScheme _ 
 = Application.ColorSchemes("Alpine")

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.