OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 25-08-2008, 01:35
Posts: n/a
Red face How to select the same color Shapes, adds whiteOutline, In ActiveDocument.Pages?

How to select the same color Shapes, adds whiteOutline, In ActiveDocument.Pages?
Attached Images
Attached Files
File Type: cdr Graphic1.cdr (28.6 KB, 16 views)
Reply With Quote
Old 28-08-2008, 18:28
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,778
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Try this...

Since you are using X4 I would use CQL to find the shapes, create a shaperange and set the outline properties. The code would look like this:
Sub WhiteOutline()
    Dim strColor As String
    Dim p As Page
    Dim sr As New ShapeRange
    strColor = ActiveShape.Fill.UniformColor.ToString
    For Each p In ActiveDocument.Pages
        sr.AddRange p.Shapes.FindShapes(Query:="@fill.color = '" & strColor & "'")
    Next p
    sr.SetOutlineProperties 0.0039, , CreateCMYKColor(0, 0, 0, 0)
End Sub
Best of luck,

Reply With Quote
Old 01-09-2008, 12:18
Posts: n/a

Cool, Thanks-Shelby
Reply With Quote

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
Select Rectangles out of differnet Shapes WernerHo CorelDRAW/Corel DESIGNER VBA 2 12-01-2008 18:15
select complex curves + Traverse shapes without recursion (also powerclipped!) wOxxOm CorelDRAW/Corel DESIGNER VBA 0 23-08-2007 18:11
How to select objects of the same color? Alex FAQ 6 08-07-2005 00:42
Select Single Pages... ddonnahoe CorelDRAW/Corel DESIGNER VBA 3 14-06-2005 13:41
Select Paragraph Text with more than one color joexx CorelDRAW/Corel DESIGNER VBA 2 06-10-2004 13:20

All times are GMT -5. The time now is 01:57.

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