Export (0) Print
Expand All

Document.ColorScheme Property

Office 2007
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")



Community Additions

ADD
Show:
© 2014 Microsoft