API Documentation > CorelDRAW > 2025-v26 > Palette > IVGPalette
Palette.Close method
Closes the color palette
Syntax:
Sub Close()
Remarks:
The Close method closes a specified palette.
Examples:
The following VBA example closes all palettes except for the standard palette in CorelDRAW.
Sub Test()
Dim pal As Palette
For Each pal In Palettes
  If pal.Name <> "Default CMYK palette" Then pal.Close
  Next pal

End Sub