OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 26-09-2008, 16:10
Sablesword Sablesword is offline
Junior Member
Join Date: Aug 2006
Posts: 20
Default Using subs from another module, "Object Required" error

I feel like I'm overlooking something blindingly obvious, but I can't figure it out. When I try to string a bunch of macros together in a different project, I get the '424' - Object required error And I can't figure out what object(s) the code wants.

In particular, I use the crosshair cursor normally, so I want to toggle it off before running the delete-segment macro, then toggle it back on:

Sub Macro1()
End Sub
So what blindingly obvious thing am I overlooking?
Reply With Quote
Old 26-09-2008, 17:31
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,788
Blog Entries: 12
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Calling Macros in another GMS

I assume you still have each macro in its own GMS so you need to call it like this:
Sub CallAnotherGMS()
    GMSManager.RunMacro "wx_PatchDraw", "patch.CrossHairToggle"
    GMSManager.RunMacro "DelSegment", "Main.DeleteSegment"
    GMSManager.RunMacro "wx_PatchDraw", "patch.CrossHairToggle"
End Sub
Best of luck,


Last edited by shelbym; 26-09-2008 at 17:33.
Reply With Quote
Old 28-09-2008, 00:41
Sablesword Sablesword is offline
Junior Member
Join Date: Aug 2006
Posts: 20

OK, thanks!
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
"Failed to Create New Document" error message Alex FAQ 1 20-06-2007 15:07
"Convert Outline To Object" Problem billjones General 5 30-04-2006 08:29
"Failed to create new document" error Rick Randall CorelDRAW/Corel DESIGNER VBA 3 08-03-2004 16:55
"Unexpected condition" error message (with code) s_federici CorelDRAW/Corel DESIGNER VBA 10 10-07-2003 22:46
"Object too complex" error dcsquare CorelDRAW/Corel DESIGNER VBA 0 25-05-2003 11:13

All times are GMT -5. The time now is 07:36.

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