OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-04-2005, 19:40
geopig
Guest
 
Posts: n/a
Default Break Each Object Apart within Selection

Hi,

This seems like it should be a very basic macro to write, but I can't seem to get it to work (it's been a very long day). The basic idea is to break individual objects apart from within a selection. I'm not a programmer, but I made a stab at it with no success. Any help would be appreciated (I'm too emabarassed to post the code I tried ).

Cheers,
Geoff
Reply With Quote
  #2  
Old 15-04-2005, 12:23
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
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 Example

I tried to keep this as simple as I could. Basically it gets the selection, loops thru it, and breaks apart every shape. Hope it gives you a place to start.

Code:
Sub BreakApart()

Dim s As Shape
Dim Selection As ShapeRange

Set Selection = ActiveSelectionRange

For Each s In Selection
    s.BreakApart
Next s

End Sub
Reply With Quote
  #3  
Old 15-04-2005, 13:38
geopig
Guest
 
Posts: n/a
Default

Thanks a million. I was close and now I see exactly where I went wrong (some sleep probably helped as well). Your help is greatly appreciated.

Cheers,
Geoff
Reply With Quote
Reply


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
CDR12: refresh Object Manager docker after CreateSelection zlatev CorelDRAW/Corel DESIGNER VBA 2 05-03-2005 09:00
Bounding lines around an object toy4mud CorelDRAW CS 2 04-11-2004 11:56
Sorting entries in the object manager dan CorelDRAW/Corel DESIGNER VBA 1 18-08-2004 22:16
Would you miss CorelScript object? Alex CorelDRAW/Corel DESIGNER VBA 32 04-02-2004 14:59
Page selection and object moving problems wbochar CorelDRAW/Corel DESIGNER VBA 1 15-04-2003 09:10


All times are GMT -5. The time now is 06:08.


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