Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.42 KB

Publisher.ColorCMYK.md

File metadata and controls

52 lines (33 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ColorCMYK object (Publisher)
vbapb10.chm2686975
vbapb10.chm2686975
Publisher.ColorCMYK
e1a39f6f-f440-e375-4f8c-e81093e5a451
05/31/2019
medium

ColorCMYK object (Publisher)

Represents a cyan-magenta-yellow-black (CMYK) color value.

Remarks

Use the CMYK property of the ColorFormat object to return a ColorCMYK object.

Use the Cyan, Magenta, Yellow, and Black properties to individually set each of the four colors in the CMYK color value. Use the SetCMYK method to set all four colors at once.

Example

The following example retrieves the CMYK color value of shape one's fill and changes it to another CMYK color value.

Dim cmykColor As ColorCMYK Set cmykColor = ActiveDocument.Pages(1).Shapes(1).Fill.ForeColor.CMYK cmykColor.SetCMYK Cyan:=0, Magenta:=255, Yellow:=255, Black:=50

Methods

Properties

See also

[!includeSupport and feedback]