![]() |
#1
|
|||
|
|||
![]()
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) Code:
Private Sub GlobalMacroStorage_Start() ActiveWindow.ActiveView.ToFitPageWidth End Sub thank you! regards beny04 ![]() |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]() ![]() regards |
![]() |
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 |
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 |