OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 26-04-2005, 04:18
Posts: n/a
Default run a macro at startup with Corel 12 ?

Hi, I tested the answer from Alex at http://www.oberonplace.com/forum/viewtopic.php?t=688
the message box works very well, but my code produce error 91
(run time error)

Private Sub GlobalMacroStorage_Start() 
End Sub
My intention is, to have a large window after the coreldraw-start.

thank you!
regards beny04
Reply With Quote
Old 26-04-2005, 10:49
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: run a macro at startup with Corel 12 ?

When you start the application, you don't have a document yet, that's why you can't use ActiveWindow in the Start event. You might want to create a message handler for DocumentNew or DocumentOpen events instead.
Reply With Quote
Old 26-04-2005, 14:57
Posts: n/a
Default Thanfs

Hi Alex, thank you for the answer! I will try to create a solution.
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
Run a macro at startup with Corel 12 ? -=HKLC=- CorelDRAW/Corel DESIGNER VBA 8 08-04-2005 02:07
run macro at start up Corel 11 ???? -=HKLC=- CorelDRAW/Corel DESIGNER VBA 14 30-10-2004 09:29
Run my add-in on startup Corel. drg CorelDRAW/Corel DESIGNER VBA 5 16-09-2004 10:38
Corel 11 Macro arollgen CorelDRAW/Corel DESIGNER VBA 1 17-08-2004 16:10
New macro to clip curves w.r.t. a border Gerard Hermans Macros/Add-ons 0 09-06-2003 07:50

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

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