![]() |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Pls see code below.
i have several symbols with text and objects that requires no fill and no stroke. I want to select symbols , select all contents (shapes & text) and make them all no fill. is my code correct? Sub NoFill() Dim s As Shape, s1 As Shape, sr As ShapeRange, sr2 As ShapeRange Dim str1$, str2$ str2 = "" Set sr = ActiveSelection.Shapes.FindContent(Query:="@content = 'symbol'") For Each s In sr str1 = s.Symbol.Definition.Name If InStr("-*-" & str2 & "-*-", str1) = 0 Then str2 = str2 & "-*-" & str1 & "-*-" s.Symbol.Definition.EnterEditMode Set sr2 = ActiveLayer.Shapes.FindShapes(Query:="@shape = 'shape'") For Each s1 In sr2 s1.Fill.ApplyNoFill Next s1 s.Symbol.Definition.LeaveEditMode End If Next s sr.CreateSelection End Sub |
#2
|
||||
|
||||
![]()
Here is my version:
Code:
Sub SymbolNoFillNoOutline() Dim s As Shape, s2 As Shape Dim sr As ShapeRange Set sr = ActivePage.Shapes.FindShapes(Type:=cdrSymbolShape) For Each s In sr.Shapes s.Symbol.Definition.EnterEditMode Set s2 = ActiveLayer.FindShape() s2.Fill.ApplyNoFill s2.Outline.SetNoOutline s.Symbol.Definition.LeaveEditMode Next s End Sub |
![]() |
Tags |
no fill, symbol |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
include groups - reverting symbols to objects | gorgo | CorelDRAW/Corel DESIGNER VBA | 1 | 25-03-2011 13:16 |
Find and delete objects with no fill or outline | keytecstaff | CorelDRAW/Corel DESIGNER VBA | 17 | 22-06-2010 23:34 |
how to make a vertical text? | pony | CorelDRAW/Corel DESIGNER VBA | 2 | 30-08-2009 02:09 |
Align stroke on a path | jod | General | 3 | 10-05-2007 21:07 |
How to make objects appear on the screen in real size? | Alex | FAQ | 0 | 27-04-2005 11:16 |