![]() |
#1
|
|||
|
|||
![]()
Hello,
I have the following code which copies selected objects to the next page while maintaining layers: Code:
sub copytonext() Dim sr As ShapeRange Dim s As Shape Set sr = ActiveSelectionRange For Each s In sr s.Layer.Activate s.Duplicate s.MoveToLayer ActiveDocument.Pages(ActivePage.Index + 1).ActiveLayer Next s End Sub Thanks, Chris (Hunt) |
#2
|
||||
|
||||
![]()
How about something like this:
Code:
Sub CopyToNext() Dim sr As ShapeRange Dim s As Shape Dim p As Page Set sr = ActiveSelectionRange Set p = ActiveDocument.InsertPages(1, False, ActivePage.Index) For Each s In sr s.Layer.Activate s.Duplicate s.MoveToLayer ActiveDocument.Pages(ActivePage.Index + 1).ActiveLayer Next s End Sub |
#3
|
|||
|
|||
![]()
Hey !!!
Great idea, This can be very very useful. Using 'duplicate' instead of Copy makes it much much faster even for large bitmaps. Great. Only one thing, if you can add something by which I get an option of selecting page number whiere I want it copied to. It would be far more useful. Please. Thanx |
#4
|
|||
|
|||
![]()
Thanks Shelby, that works beautifully. I had worked out something that involved
ObjectData("Name") but your method is much simpler. Best wishes, Chris |
#5
|
|||
|
|||
![]() Quote:
http://forum.oberonplace.com/showthr...=8160#post8160 The macro is rough but I think (I hope) it does what you want. Best wishes, Chris (Hunt) |
#6
|
|||
|
|||
![]()
Thanx, I just tried it today. It was very thoughfull of you to add all those options.!!! Great.
For those wonking with multiple layers this will be very useful. |
![]() |
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 |
Is there a way to select all objects on page..... | LGD | CorelDRAW/Corel DESIGNER VBA | 2 | 10-11-2006 14:04 |
How controll lot of layers? | petig | CorelDRAW/Corel DESIGNER VBA | 5 | 28-08-2005 02:35 |
Deselect all selected objects | Alex | FAQ | 1 | 16-05-2005 14:10 |
Copy and paste objects in CDR9 | macnab | CorelDRAW/Corel DESIGNER VBA | 0 | 03-09-2003 10:59 |
I need to update objects visibility faster | NEHovis | Corel Photo-Paint VBA | 0 | 18-07-2003 07:54 |