KaiBo Posted December 10, 2008 Share Posted December 10, 2008 In VBA I have a series of subroutines that I needed to attach to a specific Drawing, and some of these subroutines need to call on general subroutines I have stored in a project that loads at the start of AutoCAD. I know how to call subroutines from one project to another, but I have not been able to call these general subroutines from a subroutine attached to this Drawing. Is this some thing that is not allowed or is there a way, and what is it? The sub I’m trying to Call is : SearchPathUser It’s in Module: SearchPathUser In project: C:\TWvba\TWproject.dvb Here are some of the failed attempts at calling the sub that I have tried. Call SearchPathUser Call SearchPathUser.SearchPathUser Call TWproject.dvb!ProjectnameFiles.ProjectnameFiles Call TWproject.dvb.ProjectnameFiles.ProjectnameFiles run aplication ACADProject("C:\TWvba\TWproject.dvb!ProjectnameFiles.ProjectnameFiles") Thanks for your time, Kai Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.