OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   how to fill a shape with spot color by name (http://forum.oberonplace.com/showthread.php?t=24853)

aakkaarr 17-01-2021 15:04

how to fill a shape with spot color by name
 
how to fill a shape with spot color by name
e.g. I want to fill Pantone 117C by VBA

shelbym 16-05-2021 22:16

how to fill a shape with spot color by name
 
You can do this by the index like this:
Code:

ActiveSelection.Fill.UniformColor.PaletteAssign "PANTONEĀ® solid coated", 44
or you can do a StringAssign like this:
Code:

ActiveSelection.Fill.UniformColor.StringAssign "SPOT,PANTONEC,47,100,fc6ccd74-10a8-4152-8901-a51facb47785,~,PANTONE 117 C,2,CMYK255,USER,5,56,255,38,100,00000000-0000-0000-0000-000000000000,~,RGB255,USER,196,158,13,100,00000000-0000-0000-0000-000000000000,~,fc6ccd74-10a8-4152-8901-a51facb47785,PANTONE 117 C"
Happy coding,

-Shelby


All times are GMT -5. The time now is 06:24.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright Ā© 2011, Oberonplace.com