OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2006, 09:41
Mike83
Guest
 
Posts: n/a
Default Copy Layer

Hi,

i want to copy a single layer from a dokument to another with the following vb script:

Dim lr As Layer
Dim TempDoc As Document
Set TempDoc = PHOTOPAINT.OpenDocument("c:\file.cpt")
Set lr = TempDoc.Layers.Selection("Layername")
lr.Copy


when i run it the error comes:
objektvariable oder with-blockvariable nicht festgelegt

does someone know how to fix this?
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
existence of layer modzho CorelDRAW/Corel DESIGNER VBA 7 04-09-2008 14:37
VBA help needed - changing colours fremoikaner CorelDRAW/Corel DESIGNER VBA 1 18-11-2004 07:06
Deleting Shapes on the Guides Layer Rick Randall CorelDRAW/Corel DESIGNER VBA 2 28-09-2004 12:07
Copy to Adobe Illustrator Macro Tallywhacker Macros/Add-ons 2 24-05-2004 08:07
Copy and paste objects in CDR9 macnab CorelDRAW/Corel DESIGNER VBA 0 03-09-2003 11:59


All times are GMT -5. The time now is 00:42.


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