<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332726#M89302</link>
    <description>The name of the DVB containing the module you want to access must be listed&lt;BR /&gt;
to the left of the exclamation: MyOtherProject!link.get_login_name.&lt;BR /&gt;
&lt;BR /&gt;
BTW, assuming get_login_name does what its name says, why not just use&lt;BR /&gt;
ThisDrawing.GetVariable("LOGINNAME")?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
All use of the contents of this article is subject to the&lt;BR /&gt;
terms and conditions at http://www.acadx.com/csc.htm&lt;BR /&gt;
&lt;BR /&gt;
"Steve Carter" &lt;SCARTER&gt; wrote in message&lt;BR /&gt;
news:7A199F503B407641D15DB3E7E5D2869A@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; i am doing something wrong.  i receive the following microsoft vb error.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Compile error:&lt;BR /&gt;
&amp;gt; Invalid or unqualified reference&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; the project is loaded in memory.  the project name is link.dvb, the module&lt;BR /&gt;
&amp;gt; is called LinkModule, and the subroutine is called get_login_name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in my calling subroutine i did the following (per your instructions):&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; !link.get_login_name&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; sc&lt;BR /&gt;
&amp;gt; Mid-State Consultants&lt;BR /&gt;
&amp;gt; scarter@mscon.com&lt;/SCARTER&gt;</description>
    <pubDate>Tue, 21 Nov 2000 07:11:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-11-21T07:11:49Z</dc:date>
    <item>
      <title>Global Modules in VBA?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332723#M89299</link>
      <description>i am new to vba.  is it possible to call a subroutine in a vba project from&lt;BR /&gt;
an entirely different vba project? (or do you need to create a&lt;BR /&gt;
DLL/ActiveX?).  if it is possible, how do you do it?&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
sc&lt;BR /&gt;
Mid-State Consultants&lt;BR /&gt;
scarter@mscon.com</description>
      <pubDate>Mon, 20 Nov 2000 17:16:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332723#M89299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T17:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Global Modules in VBA?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332724#M89300</link>
      <description>yes you can.&lt;BR /&gt;
&lt;BR /&gt;
first you have to load the other project into memory and the call the sub&lt;BR /&gt;
from your original like:&lt;BR /&gt;
&lt;BR /&gt;
!otherproject.othersub&lt;BR /&gt;
&lt;BR /&gt;
JPMC&lt;BR /&gt;
&lt;BR /&gt;
Steve Carter escribió en mensaje ...&lt;BR /&gt;
&amp;gt;i am new to vba.  is it possible to call a subroutine in a vba project from&lt;BR /&gt;
&amp;gt;an entirely different vba project? (or do you need to create a&lt;BR /&gt;
&amp;gt;DLL/ActiveX?).  if it is possible, how do you do it?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;--&lt;BR /&gt;
&amp;gt;sc&lt;BR /&gt;
&amp;gt;Mid-State Consultants&lt;BR /&gt;
&amp;gt;scarter@mscon.com&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Tue, 21 Nov 2000 06:48:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332724#M89300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T06:48:10Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332725#M89301</link>
      <description>i am doing something wrong.  i receive the following microsoft vb error.&lt;BR /&gt;
&lt;BR /&gt;
Compile error:&lt;BR /&gt;
Invalid or unqualified reference&lt;BR /&gt;
&lt;BR /&gt;
the project is loaded in memory.  the project name is link.dvb, the module&lt;BR /&gt;
is called LinkModule, and the subroutine is called get_login_name.&lt;BR /&gt;
&lt;BR /&gt;
in my calling subroutine i did the following (per your instructions):&lt;BR /&gt;
&lt;BR /&gt;
!link.get_login_name&lt;BR /&gt;
&lt;BR /&gt;
any ideas?&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
sc&lt;BR /&gt;
Mid-State Consultants&lt;BR /&gt;
scarter@mscon.com&lt;BR /&gt;
"juan pablo" &lt;JMOLINAC&gt; wrote in message&lt;BR /&gt;
news:AC11AE0D608094E0E6EBAEB309447E3B@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; yes you can.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; first you have to load the other project into memory and the call the sub&lt;BR /&gt;
&amp;gt; from your original like:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; !otherproject.othersub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; JPMC&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Steve Carter escribió en mensaje ...&lt;BR /&gt;
&amp;gt; &amp;gt;i am new to vba.  is it possible to call a subroutine in a vba project&lt;BR /&gt;
from&lt;BR /&gt;
&amp;gt; &amp;gt;an entirely different vba project? (or do you need to create a&lt;BR /&gt;
&amp;gt; &amp;gt;DLL/ActiveX?).  if it is possible, how do you do it?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;--&lt;BR /&gt;
&amp;gt; &amp;gt;sc&lt;BR /&gt;
&amp;gt; &amp;gt;Mid-State Consultants&lt;BR /&gt;
&amp;gt; &amp;gt;scarter@mscon.com&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JMOLINAC&gt;</description>
      <pubDate>Tue, 21 Nov 2000 07:09:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332725#M89301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T07:09:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332726#M89302</link>
      <description>The name of the DVB containing the module you want to access must be listed&lt;BR /&gt;
to the left of the exclamation: MyOtherProject!link.get_login_name.&lt;BR /&gt;
&lt;BR /&gt;
BTW, assuming get_login_name does what its name says, why not just use&lt;BR /&gt;
ThisDrawing.GetVariable("LOGINNAME")?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
All use of the contents of this article is subject to the&lt;BR /&gt;
terms and conditions at http://www.acadx.com/csc.htm&lt;BR /&gt;
&lt;BR /&gt;
"Steve Carter" &lt;SCARTER&gt; wrote in message&lt;BR /&gt;
news:7A199F503B407641D15DB3E7E5D2869A@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; i am doing something wrong.  i receive the following microsoft vb error.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Compile error:&lt;BR /&gt;
&amp;gt; Invalid or unqualified reference&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; the project is loaded in memory.  the project name is link.dvb, the module&lt;BR /&gt;
&amp;gt; is called LinkModule, and the subroutine is called get_login_name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in my calling subroutine i did the following (per your instructions):&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; !link.get_login_name&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; sc&lt;BR /&gt;
&amp;gt; Mid-State Consultants&lt;BR /&gt;
&amp;gt; scarter@mscon.com&lt;/SCARTER&gt;</description>
      <pubDate>Tue, 21 Nov 2000 07:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332726#M89302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332727#M89303</link>
      <description>Steve's message was moved to the Customer Files group since it&lt;BR /&gt;
included a 2.875 meg file. Here is just his message.&lt;BR /&gt;
-- &lt;BR /&gt;
Anne Brown&lt;BR /&gt;
Manager, Moderator&lt;BR /&gt;
Autodesk Product Support discussion groups&lt;BR /&gt;
Discussion Q&amp;amp;A: http://www.autodesk.com/discussion&lt;BR /&gt;
&lt;BR /&gt;
Subject: &lt;BR /&gt;
            Re: Global Modules in VBA?&lt;BR /&gt;
       Date: &lt;BR /&gt;
            Tue, 21 Nov 2000 07:43:23 -0800&lt;BR /&gt;
       From: &lt;BR /&gt;
            "Steve Carter" &lt;SCARTER&gt;&lt;BR /&gt;
 Newsgroups: &lt;BR /&gt;
            autodesk.autocad.customization.vba&lt;BR /&gt;
 &lt;BR /&gt;
i'm really starting to feel stupid.  i have attempted to do what&lt;BR /&gt;
you&lt;BR /&gt;
explained without success.&lt;BR /&gt;
&lt;BR /&gt;
i receive the following microsoft VB error:&lt;BR /&gt;
&lt;BR /&gt;
Compiler error:&lt;BR /&gt;
Variable not defined&lt;BR /&gt;
&lt;BR /&gt;
i have attached a screen shot of the vba subroutine showing the&lt;BR /&gt;
subroutine&lt;BR /&gt;
(code) that i want to call, also the project explorer (showing&lt;BR /&gt;
the module&lt;BR /&gt;
and project).&lt;BR /&gt;
&lt;BR /&gt;
in answer to your question, the login refers to logging into a&lt;BR /&gt;
particular&lt;BR /&gt;
database, not AutoCAD (or network).&lt;BR /&gt;
&lt;BR /&gt;
thanks for the help,&lt;BR /&gt;
--&lt;BR /&gt;
sc&lt;BR /&gt;
Mid-State Consultants&lt;BR /&gt;
scarter@mscon.com&lt;/SCARTER&gt;</description>
      <pubDate>Tue, 21 Nov 2000 08:35:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332727#M89303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Global Modules in VBA?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332728#M89304</link>
      <description>it appears to be working.  thanks for the great assistance, you are very&lt;BR /&gt;
helpful.&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
sc&lt;BR /&gt;
Mid-State Consultants&lt;BR /&gt;
scarter@mscon.com&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:F247B353873BB1A1C158196860A85925@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Don't get discouraged. In no time, you'll be knocking these projects out&lt;BR /&gt;
&amp;gt; without breaking a sweat. Here's something you might want to look into:&lt;BR /&gt;
with&lt;BR /&gt;
&amp;gt; both projects loaded in the ide, add a reference to the project you want&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; call to the project you want to call it from. IOW, add a reference to&lt;BR /&gt;
&amp;gt; Linking in your other project.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now where you want to use code from the Linking project, type Linking.&lt;BR /&gt;
&amp;gt; (include the dot). An IntelliSense list will pop down listing all the&lt;BR /&gt;
public&lt;BR /&gt;
&amp;gt; routines in that project. One thing: I do not know if the Linking project&lt;BR /&gt;
&amp;gt; will be demand loaded or if you have to load prior to calling it. Joe&lt;BR /&gt;
&amp;gt; Sutphin might be a good guy to ask. Hope this helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; All use of the contents of this article is subject to the&lt;BR /&gt;
&amp;gt; terms and conditions at http://www.acadx.com/csc.htm&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Steve Carter" &lt;SCARTER&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:5E005F2C525EEA27E4D9D8039673A87B@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; i'm really starting to feel stupid.  i have attempted to do what you&lt;BR /&gt;
&amp;gt; &amp;gt; explained without success.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; i receive the following microsoft VB error:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Compiler error:&lt;BR /&gt;
&amp;gt; &amp;gt; Variable not defined&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; i have attached a screen shot of the vba subroutine showing the&lt;BR /&gt;
subroutine&lt;BR /&gt;
&amp;gt; &amp;gt; (code) that i want to call, also the project explorer (showing the&lt;BR /&gt;
module&lt;BR /&gt;
&amp;gt; &amp;gt; and project).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; in answer to your question, the login refers to logging into a&lt;BR /&gt;
particular&lt;BR /&gt;
&amp;gt; &amp;gt; database, not AutoCAD (or network).&lt;BR /&gt;
&amp;gt;&lt;/SCARTER&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Tue, 21 Nov 2000 08:54:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332728#M89304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Global Modules in VBA?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332729#M89305</link>
      <description>Frank,&lt;BR /&gt;
&lt;BR /&gt;
I am unsure if my e-mails got out, i was getting a rejection notice on my&lt;BR /&gt;
side.  You are very kind to offer assistance.  I will call on you, but only&lt;BR /&gt;
when I truly need help.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
sc&lt;BR /&gt;
Mid-State Consultants&lt;BR /&gt;
scarter@mscon.com&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:F247B353873BB1A1C158196860A85925@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Don't get discouraged. In no time, you'll be knocking these projects out&lt;BR /&gt;
&amp;gt; without breaking a sweat. Here's something you might want to look into:&lt;BR /&gt;
with&lt;BR /&gt;
&amp;gt; both projects loaded in the ide, add a reference to the project you want&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; call to the project you want to call it from. IOW, add a reference to&lt;BR /&gt;
&amp;gt; Linking in your other project.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now where you want to use code from the Linking project, type Linking.&lt;BR /&gt;
&amp;gt; (include the dot). An IntelliSense list will pop down listing all the&lt;BR /&gt;
public&lt;BR /&gt;
&amp;gt; routines in that project. One thing: I do not know if the Linking project&lt;BR /&gt;
&amp;gt; will be demand loaded or if you have to load prior to calling it. Joe&lt;BR /&gt;
&amp;gt; Sutphin might be a good guy to ask. Hope this helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; All use of the contents of this article is subject to the&lt;BR /&gt;
&amp;gt; terms and conditions at http://www.acadx.com/csc.htm&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Steve Carter" &lt;SCARTER&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:5E005F2C525EEA27E4D9D8039673A87B@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; i'm really starting to feel stupid.  i have attempted to do what you&lt;BR /&gt;
&amp;gt; &amp;gt; explained without success.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; i receive the following microsoft VB error:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Compiler error:&lt;BR /&gt;
&amp;gt; &amp;gt; Variable not defined&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; i have attached a screen shot of the vba subroutine showing the&lt;BR /&gt;
subroutine&lt;BR /&gt;
&amp;gt; &amp;gt; (code) that i want to call, also the project explorer (showing the&lt;BR /&gt;
module&lt;BR /&gt;
&amp;gt; &amp;gt; and project).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; in answer to your question, the login refers to logging into a&lt;BR /&gt;
particular&lt;BR /&gt;
&amp;gt; &amp;gt; database, not AutoCAD (or network).&lt;BR /&gt;
&amp;gt;&lt;/SCARTER&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Tue, 21 Nov 2000 10:59:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/global-modules-in-vba/m-p/332729#M89305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-21T10:59:41Z</dc:date>
    </item>
  </channel>
</rss>

