![]() |
#1
|
|||
|
|||
![]()
Hi! I'm newbie in VBA and I can't make a very easy macro..
![]() I need to extract all powerclip contents (from objects and from outlines) on page and delete these. Can somebody help me? |
#2
|
||||
|
||||
![]()
Here you go...
Code:
Sub DeletePowerclips() Dim s As Shape Dim sr As ShapeRange Dim srPowerClips As New ShapeRange ' Find all powerclips (omit powerclips inside powerclips) For Each s In ActivePage.FindShapes() If Not s.PowerClip Is Nothing And s.PowerClipParent Is Nothing Then srPowerClips.Add s End If Next s ' Now extract and delete contents of the powerclips For Each s In srPowerClips Set sr = s.PowerClip.ExtractShapes sr.Delete Next s End Sub |
#3
|
|||
|
|||
![]()
Thank you for fast reply!
The code works good, but only with shapes, when I have curves in document then I become the error warning: 'This shape is not of the correct type to support this property of method.' ![]() And I need extract powerclips from curves too! |
![]() |
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 |
[BUG] - Fountain fill is'nt rotate in powerclip | Kursad | General | 3 | 01-07-2005 22:01 |
How can I extract a piece of a bitmap object using VBA code | oswaldon | Corel Photo-Paint VBA | 2 | 25-04-2004 20:37 |
VBA hint to extract CorelDraw images from msWord.doc | Henri Socha | CorelDRAW/Corel DESIGNER VBA | 1 | 04-04-2003 12:11 |