Previous Document Next Document

Object Model Reference : Classes : A : Application : Properties : Application.ActivePalette


Application.ActivePalette

Property ActivePalette As Palette

Description

Member of Application

The ActivePalette property returns a read-only reference to the active palette.

VBA example

The following VBA example displays the name of the default palette, and the number of colors in that palette, in a message box.

Sub PaletteActive()
 MsgBox "The default color palette is: " & _
 ActivePalette.Name & _
 "It contains " & ActivePalette.ColorCount & " colors."
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.