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 11-02-2004, 03:42
Dr Morpheus
Guest
 
Posts: n/a
Default problem with script or macro.

hi guys,

sorry if i post this question in wrong section, i did not see any other better place for this.

i am totaly new with corel script /vba script. i have copied some scripts from this forum. one of them was seeted on my computer by my friend , but i dont know how to use these script. like i have a script for (corel to photoshop) i want to set it up. plz can anyone guide me how to use these? i need some tutorial.

Thanks in advance.
Reply With Quote
  #2  
Old 12-02-2004, 13:46
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: problem with script or macro.

Dr Morpheus,

If you have a piece of code you copied from this forum, then it may look like this:

Code:
Sub TestMacro()
    MsgBox "Hello, world!"
End Sub
If this is the case, then here is what you need to do to run it in CorelDRAW:
  1. Start CorelDRAW
  2. Go to Tools>Visual Basic>Visual Basic Editor... (or just press Alt-F11)
  3. In Visual Basic Editor (VBE) go to project explorer on the left side (see the screenshot below). If it's not visible, press Ctrl-R to show it
  4. Find a project called "GlobalMacros (GlobalMacros.gms)" in the tree.
  5. Right-click it and select "Insert>Module" from the pop-up menu (see the screenshot). This will add a new code module and show a code window to the right
  6. Just paste your code in that window, then place the cursor inside the macro function (somwhere between Sub ... and End Sub) and hit F5 to run it

If you downloaded a macro as a .GMS file, please follow the following link for explanation on how to install and run the macros in this case: http://www.oberonplace.com/vba/useexistingmacro.htm

I hope this helps.
Attached Images
  
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
Problem with Page Numbering macro pmills Macros/Add-ons 1 07-05-2005 08:49
Trying to get my Time Recording script running... johndankey CorelDRAW/Corel DESIGNER VBA 12 26-04-2004 22:48
New Macro / script for CorelDraw V. x acaputo1 New product ideas 4 31-08-2003 13:43
New macro to clip curves w.r.t. a border Gerard Hermans Macros/Add-ons 0 09-06-2003 07:50
Speeding up a macro Rick Randall CorelDRAW/Corel DESIGNER VBA 2 12-12-2002 10:51


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


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