<?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/vbe-activevbproject/m-p/342259#M82292</link>
    <description>I haven't tried that. Maybe a "repair installation" will fix the problem.&lt;BR /&gt;
&lt;BR /&gt;
Do you know if V5.3 is the version A2K/MDT4 expects? The problem machine had&lt;BR /&gt;
MDT5/A2Ki installed at one time. I'm wondering if that upgraded the&lt;BR /&gt;
extensibility model to a higher version that MDT4 only partially recognizes.&lt;BR /&gt;
It appears that only some of the methods/properties are available. It is&lt;BR /&gt;
obviously connecting with the VBE object model or I wouldn't even be getting&lt;BR /&gt;
the "project name". I also tried a sample from the VBE help file that&lt;BR /&gt;
dynamically creates a procedure and that worked. Very strange.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the suggestion.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
    <pubDate>Tue, 31 Jul 2001 03:35:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-07-31T03:35:39Z</dc:date>
    <item>
      <title>VBE.ActiveVBProject ??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342257#M82290</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
MDT4, NT4 Sp5&lt;BR /&gt;
VB 6.0 installed&lt;BR /&gt;
&lt;BR /&gt;
This works:&lt;BR /&gt;
MsgBox ThisDrawing.Application.VBE.ActiveVBProject.Name&lt;BR /&gt;
&lt;BR /&gt;
This fails with "Object does not support this property or method"&lt;BR /&gt;
MsgBox ThisDrawing.Application.VBE.ActiveVBProject.BuildFileName&lt;BR /&gt;
&lt;BR /&gt;
The same statements work on a second machine MDT5/MDT6 A2Ki A2K2 Win2k pro &amp;amp;&lt;BR /&gt;
VB6.&lt;BR /&gt;
&lt;BR /&gt;
The "VBE extensibility" is referenced on both machines. I tried both V5.3&lt;BR /&gt;
and V6.0 on the troublesome machine.&lt;BR /&gt;
&lt;BR /&gt;
I reinstalled MDT4 and it still fails. I've tried many of the examples&lt;BR /&gt;
posted in this group to get the loaded projects etc. They all fail on the&lt;BR /&gt;
MDT4 machine. Does anyone know what could be wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Mon, 30 Jul 2001 07:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342257#M82290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-07-30T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBE.ActiveVBProject ??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342258#M82291</link>
      <description>Gary,&lt;BR /&gt;
&lt;BR /&gt;
How about reinstalling VB6 rather than MDT.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Thilak&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GMCMASTER&gt; wrote in message&lt;BR /&gt;
news:D35DE0EFD63D85715B9FBD0BD71DBF5E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi All,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; MDT4, NT4 Sp5&lt;BR /&gt;
&amp;gt; VB 6.0 installed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This works:&lt;BR /&gt;
&amp;gt; MsgBox ThisDrawing.Application.VBE.ActiveVBProject.Name&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This fails with "Object does not support this property or method"&lt;BR /&gt;
&amp;gt; MsgBox ThisDrawing.Application.VBE.ActiveVBProject.BuildFileName&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The same statements work on a second machine MDT5/MDT6 A2Ki A2K2 Win2k pro&lt;BR /&gt;
&amp;amp;&lt;BR /&gt;
&amp;gt; VB6.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The "VBE extensibility" is referenced on both machines. I tried both V5.3&lt;BR /&gt;
&amp;gt; and V6.0 on the troublesome machine.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I reinstalled MDT4 and it still fails. I've tried many of the examples&lt;BR /&gt;
&amp;gt; posted in this group to get the loaded projects etc. They all fail on the&lt;BR /&gt;
&amp;gt; MDT4 machine. Does anyone know what could be wrong?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/GMCMASTER&gt;</description>
      <pubDate>Mon, 30 Jul 2001 23:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342258#M82291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-07-30T23:04:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342259#M82292</link>
      <description>I haven't tried that. Maybe a "repair installation" will fix the problem.&lt;BR /&gt;
&lt;BR /&gt;
Do you know if V5.3 is the version A2K/MDT4 expects? The problem machine had&lt;BR /&gt;
MDT5/A2Ki installed at one time. I'm wondering if that upgraded the&lt;BR /&gt;
extensibility model to a higher version that MDT4 only partially recognizes.&lt;BR /&gt;
It appears that only some of the methods/properties are available. It is&lt;BR /&gt;
obviously connecting with the VBE object model or I wouldn't even be getting&lt;BR /&gt;
the "project name". I also tried a sample from the VBE help file that&lt;BR /&gt;
dynamically creates a procedure and that worked. Very strange.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the suggestion.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Tue, 31 Jul 2001 03:35:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342259#M82292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-07-31T03:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBE.ActiveVBProject ??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342260#M82293</link>
      <description>Gary&lt;BR /&gt;
&lt;BR /&gt;
Sorry I was going to check this the other night and forgot.  Anyhow I can run both&lt;BR /&gt;
on MDT also, but the&lt;BR /&gt;
MsgBox ThisDrawing.Application.VBE.ActiveVBProject.BuildFileName&lt;BR /&gt;
fails in MDT4.   Didn't VBA change from a VB5 base to a VB6 base between MDT4 and&lt;BR /&gt;
MDT6?&lt;BR /&gt;
&lt;BR /&gt;
It works on MDT5 also&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
http://kwik-mcad.scriptmania.com/&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://mymcad.com/&lt;BR /&gt;
See the MDT/ Inventor wishlists!&lt;BR /&gt;
www.cadsense.co.nz/wishmain.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GMCMASTER&gt; wrote in message&lt;BR /&gt;
news:D35DE0EFD63D85715B9FBD0BD71DBF5E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi All,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; MDT4, NT4 Sp5&lt;BR /&gt;
&amp;gt; VB 6.0 installed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This works:&lt;BR /&gt;
&amp;gt; MsgBox ThisDrawing.Application.VBE.ActiveVBProject.Name&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This fails with "Object does not support this property or method"&lt;BR /&gt;
&amp;gt; MsgBox ThisDrawing.Application.VBE.ActiveVBProject.BuildFileName&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The same statements work on a second machine MDT5/MDT6 A2Ki A2K2 Win2k pro &amp;amp;&lt;BR /&gt;
&amp;gt; VB6.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The "VBE extensibility" is referenced on both machines. I tried both V5.3&lt;BR /&gt;
&amp;gt; and V6.0 on the troublesome machine.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I reinstalled MDT4 and it still fails. I've tried many of the examples&lt;BR /&gt;
&amp;gt; posted in this group to get the loaded projects etc. They all fail on the&lt;BR /&gt;
&amp;gt; MDT4 machine. Does anyone know what could be wrong?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/GMCMASTER&gt;</description>
      <pubDate>Tue, 31 Jul 2001 18:39:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342260#M82293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-07-31T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342261#M82294</link>
      <description>Thanks for the test Kent.&lt;BR /&gt;
&lt;BR /&gt;
Maybe it isn't my system. I'm also finding that it works with MDT5 &amp;amp; MDT6,&lt;BR /&gt;
but not with MDT4.&lt;BR /&gt;
&lt;BR /&gt;
I think you are correct about the switch from "VBA5 to VBA6". Sounds like&lt;BR /&gt;
that may have something to do with it.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 01 Aug 2001 03:25:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vbe-activevbproject/m-p/342261#M82294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-08-01T03:25:23Z</dc:date>
    </item>
  </channel>
</rss>

