Share via


Document.ColorScheme Property

Publisher Developer Reference

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.

Visual Basic for Applications
  With ActiveDocument.ColorScheme
    MsgBox "The current color scheme is " & .Name & "."
End With

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

Visual Basic for Applications
  ActiveDocument.ColorScheme _
    = Application.ColorSchemes("Alpine")

See Also