OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 23-06-2006, 10:27
knowbodynow knowbodynow is offline
Senior Member
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 434
Default Moving An object to a MasterPage


Using CorelDraw 12 how do I move an object to a master layer? I know how to move an object to an ordinary layer and turn that into a master layer, but if I already have a masterlayer how do I access it. I tried searching this forum and going through VBA help but have drawn a blank.


Chris (Hunt)
Reply With Quote
Old 24-06-2006, 05:15
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
Join Date: Mar 2005
Posts: 836

I used this in v12 - ActiveDocument.Pages(0).Layers("Desktop") for Desktop layer, so I recon that you can use ActiveDocument.Pages(0).Layers("SomeMasterLayer"), and to make fast code it's better to make intermediate object:
dim ML as Layer
set ML=ActiveDocument.Pages(0).Layers("ThatMasterLayer")
for each something in somewhere
something.MoveToLayer ML
I didn't test it, but the only caveat I can imagine is that maybe you'll need to iterate all layers on Pages(0).Layers to find some particular master layer that couln't be found with short direct notation
Reply With Quote
Old 28-06-2006, 08:36
knowbodynow knowbodynow is offline
Senior Member
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 434

Thanks Os that did the trick. I'd tried something similar but I had enclosed my equivalent of ML in brackets which didn't work.

Best wishes,

Reply With Quote

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
moving an object down in vba sifterbox CorelDRAW/Corel DESIGNER VBA 1 27-04-2006 14:40
Background to object Fine! But Object to Background - How? marian General 2 15-07-2005 03:51
Bounding lines around an object toy4mud CorelDRAW CS 2 04-11-2004 11:56
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 18:47.

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