OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 31-05-2019, 10:22
mateushenrico's Avatar
mateushenrico mateushenrico is offline
Junior Member
Join Date: Apr 2008
Posts: 16
Default Find shapes with a specific color, and change it

I've been trying to write a scrip that finds a shape with a specific color in the active page, like the example below:

Find all shapes in ActivePage

If shape = RGB 230, 230, 230 then

convert to CMYK 90, 90, 90, 90

Hope someone can help me!

Reply With Quote
Old 02-06-2019, 12:24
dungbtl's Avatar
dungbtl dungbtl is offline
Senior Member
Join Date: Apr 2004
Posts: 146

Try here:

This works in X4 ... not so sure for new vers, least I havent tried it.

Select the object w/ color and it should select all that relate colorwise.
Whether by Fill only, outline only or Both. The outline can be a PITA.
It will not select grouped objects. Good in my case if I need some items NOT to be selected.

The attached file is a macro. CHANGE the extension from sameColorSelect.ZIP
to sameColorSelect.gms The board didnt allow me to upload the .gms as a file

Copy/Paste to GMS folder. Restart Corel
Attached Files
File Type: zip sameColorSelect.ZIP (34.5 KB, 268 views)
Reply With Quote

find color, rgb shape

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
find touching shapes runflacruiser Code Critique 7 17-04-2012 08:28
CQL does not find text shapes aakkaarr CorelDRAW/Corel DESIGNER VBA 1 12-05-2011 08:40
CQL does not find shapes in PowerClip aakkaarr CorelDRAW/Corel DESIGNER VBA 3 11-05-2011 17:44
Find only shapes with compound path zlatev CorelDRAW/Corel DESIGNER VBA 1 15-02-2005 07:05
How can I find shortest distance between two curves, shapes? Jab CorelDRAW/Corel DESIGNER VBA 3 22-12-2004 13:16

All times are GMT -5. The time now is 17:39.

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