![]() |
#1
|
|||
|
|||
![]()
Can someone please tell me how to do this? It seems I've forgotten how to code using CorelDraw VBA. Thanks.
|
#2
|
|||
|
|||
![]()
OK, this works if I activate each page:
Code:
Dim p As Page, l As Layer, sr As ShapeRange For Each p In ActiveDocument.Pages ActiveDocument.ClearSelection ActiveDocument.Pages(p.Index).Activate For Each l In p.AllLayers If l.Printable = True And l.Visible = True Then ActiveDocument.Pages(p.Index).AllLayers(l.name).Shapes.all.AddToSelection End If Next l If ActiveSelection.Shapes.Count > 0 Then Set sr = ActiveSelection.DuplicateAsRange Set sr = ActiveSelectionRange MsgBox sr.Shapes.Count End If Next p |
![]() |
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 |
How check and select shapes in specfied area | gebp | CorelDRAW/Corel DESIGNER VBA | 1 | 06-11-2011 23:29 |
Virtual layers, shapes and drawing speed | jemmyell | CorelDRAW/Corel DESIGNER VBA | 2 | 06-05-2009 15:40 |
How to select the same color Shapes, adds whiteOutline, In ActiveDocument.Pages? | sy168 | CorelDRAW/Corel DESIGNER VBA | 2 | 01-09-2008 11:18 |
Select Rectangles out of differnet Shapes | WernerHo | CorelDRAW/Corel DESIGNER VBA | 2 | 12-01-2008 17:15 |
Setting Printable Layers | knowbodynow | CorelDRAW/Corel DESIGNER VBA | 2 | 13-04-2006 08:38 |