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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for