OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 16-08-2005, 00:18
Michael Cervantes
Guest
 
Posts: n/a
Default You nail it

Yeap. It was inside a macro I was creating and I used Alex codes to test.

Thanks for iluminating me.

Best regards

Michael Cervantes
Reply With Quote
  #12  
Old 16-08-2005, 00:31
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default

Michael,

I don't understand why Shelby's suggestion of deleting the code of your events doesn't work. You just open up the GlobalMacros project, go to "ThisMacroStorage" object and delete all its code. Then just hit save and it should take care of itself.

However if you really want to delete a GMS file, it might be mirrored in your user data folder:

C:\Documents and Settings\UserName\Application Data\Corel\Graphics12\User Draw

As well as in GMS subfolder in that location.

But this usually happens on a machine with restricted user access when the user privileges prohibit an application from writing to C:\Program Files\... folders.

I hope this helps.
Reply With Quote
  #13  
Old 16-08-2005, 06:07
Michael Cervantes
Guest
 
Posts: n/a
Default Thanks Alex

The problem is that the codes where in ThisStorageMacro of another macro that I created, and not inside the GlobalMacros.gms

Best regards

Michael Cervantes
Reply With Quote
  #14  
Old 26-09-2005, 11:45
Pumpkin_Masher
Guest
 
Posts: n/a
Default

I am having a similar problem. I made a small macro and stored it in GlobalMacro.gms

I also took note of where that file is located and I did back it up.

The script was working fine but then suddenly today the script just doesn't show up inside coreldraw 12 anymore.

The file is still there and still in the right place...... not sure why it doesn't recognize it anymore. I have tried restoring it from the backup too, but Corel refuses to load it. Corel also no longer lists the CalendarWizard and FileConverter like it did before either.
Reply With Quote
  #15  
Old 15-11-2010, 10:23
jlorbz
Guest
 
Posts: n/a
Default GlobalMacros.gms problem

I had a similar issue this week (yet unsolved) where the (Corel 12)macros in the GlobalMacros.gms just stop working for no explainable reason.

I use the "DocumentBeforeSave" function to update some information before it saves however it stopped working. In fact I can't get any of the built-in sub functions in "GlobalMacroStorage" to work. On another machine I have it works perfectly well.

Right now I've tried to get GlobalMacros.gms to work by having it in all three of the following folders:

C:\Program Files\Corel\Corel Graphics 12\Draw\
C:\Program Files\Corel\Corel Graphics 12\Draw\GMS\
C:\Documents and Settings\(UserID)/Application Data\Corel\Graphics12\User Draw\

I deleted the GlobalMacro.gms files and let Corel recreate it one (upon opening) pasted the code back in there and it still doesn't work.

Macro security is set to low, all modules trusted, no delay load VBA.

Does anyone have any ideas? This problem already defeated me on a prior machine and I eventually gave up which I hate to do.
Reply With Quote
  #16  
Old 15-11-2010, 15:19
jemmyell jemmyell is offline
Senior Member
 
Join Date: Jan 2005
Location: Orange County, California, USA, Earth, Solar System, Milky Way Galaxy
Posts: 157
Default

Hi,

Are you using any drawing optimization functions that disable events? Check to see that they are getting enabled again.

-James
__________________
-James Leonard
CNC Inlay Guy - www.CorelDRAWCadCam.com
Reply With Quote
  #17  
Old 16-11-2010, 07:49
jlorbz
Guest
 
Posts: n/a
Default

No macros are designed to run at Corel Startup. I do however this problem starts before any macros are actually run. The issue begins the second Corel opens. I will check again to make sure though.

I should have also mentioned that I do see the GlobalMacros.gms file when I look at the VBA editor so I know they are actually being recognized by Corel.

If someone told me they had this issue I'd think they were crazy and I think it's crazy too but it just won't work where a week ago it worked fine and supposedly nothing changed on that computer in the software or administrative rights.
Reply With Quote
  #18  
Old 16-11-2010, 08:11
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

It might be a corrupt workspace in Draw. Back up your GMS files and folders to a secure location (outside of the usual folders) and relaunch Draw while holding down the F8 key. This will reset Draw back to it's original factory settings and you can copy your GMS files back where they need to go. This will, unfortunately, remove any customization you have done to the UI, including any custom shortcut keys and icons.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
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
How can I make a macro time out? Rick Randall CorelDRAW/Corel DESIGNER VBA 6 09-02-2005 11:16
Adding a Reference on a pwd protected macro Rick Randall CorelDRAW/Corel DESIGNER VBA 9 27-10-2004 09:27
An Idea for a handy and easy to make macro vallentin Macros/Add-ons 2 16-03-2004 11:35
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:19.


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