![]() |
#1
|
|||
|
|||
![]()
This fails with Node belongs to another shape error - Ive had a read of the previous posts but still cant see how Im to do this. Given the macro is run on a doc which only has curves Im looking for help to make this macro break them all up into two node curves, I can see the nr needs to be reset to blank each time but cant see how to do it. Any help appreciated.
Code:
Sub BreakNodes() Dim s As Shape Dim sr As ShapeRange Dim n As Node Dim nr As New NodeRange Set sr = ActivePage.Shapes.FindShapes() For Each s In sr For Each n In s.Curve.Nodes nr.Add n Next n nr.BreakApart s.BreakApart Next s End Sub Last edited by nic; 15-08-2014 at 15:27. |
Tags |
noderange loop |
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 |
Do...loop error | noj | CorelDRAW/Corel DESIGNER VBA | 2 | 19-10-2011 10:25 |
Can't loop thru layers | xxxslowjoe | CorelDRAW/Corel DESIGNER VBA | 1 | 06-06-2009 13:52 |
Simple Loop? | dan | CorelDRAW/Corel DESIGNER VBA | 3 | 13-10-2004 14:31 |
Gradient + Break Apart | Hernán | New product ideas | 6 | 25-04-2004 15:34 |
+ Break Apart | Hernán | CurveWorks | 1 | 15-02-2004 17:49 |