<?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: Code Changes Required to VBA Macro so it runs on 64 bit system in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617357#M14202</link>
    <description>The problem is it wont respond to button clicks on the form at all so I cant debug it.&lt;BR /&gt;
&lt;BR /&gt;
The macro starts and the form loads.&lt;BR /&gt;
&lt;BR /&gt;
When I press the ok button nothing happens.&lt;BR /&gt;
&lt;BR /&gt;
I suspect it doesnt like me.hide but I dont kow what to replace it with.&lt;BR /&gt;
&lt;BR /&gt;
Have tried frmname.hide still nothing happens.</description>
    <pubDate>Fri, 29 Jan 2010 05:27:17 GMT</pubDate>
    <dc:creator>stevec781</dc:creator>
    <dc:date>2010-01-29T05:27:17Z</dc:date>
    <item>
      <title>Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617355#M14200</link>
      <description>Hi Guys&lt;BR /&gt;
I have upgraded to 64 bit Autocad and have lots of macros.  I read somewhere that some code changes are need.  One from memory was something about the me object not being supported and there was some code to fix this.  eg me.hide on a form wont work.  &lt;BR /&gt;
&lt;BR /&gt;
Problem is I dont remember where I saw it and cant find it on google.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know where this guide can be found?&lt;BR /&gt;
&lt;BR /&gt;
I need to get my macros running.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Steve</description>
      <pubDate>Fri, 15 Jan 2010 17:06:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617355#M14200</guid>
      <dc:creator>stevec781</dc:creator>
      <dc:date>2010-01-15T17:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617356#M14201</link>
      <description>Hi Steve,&lt;BR /&gt;
&lt;BR /&gt;
Have you stepped through the code to see where it is failing?&lt;BR /&gt;
&lt;BR /&gt;
You can achieve this by telling the Editor to Break on All errors then &lt;BR /&gt;
running the code normally from the Editor.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
stevec781 wrote:&lt;BR /&gt;
&amp;gt; Hi Guys&lt;BR /&gt;
&amp;gt; I have upgraded to 64 bit Autocad and have lots of macros.  I read somewhere that some code changes are need.  One from memory was something about the me object not being supported and there was some code to fix this.  eg me.hide on a form wont work.  &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Problem is I dont remember where I saw it and cant find it on google.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anyone know where this guide can be found?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I need to get my macros running.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt; Steve&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Fri, 15 Jan 2010 19:21:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617356#M14201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-15T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617357#M14202</link>
      <description>The problem is it wont respond to button clicks on the form at all so I cant debug it.&lt;BR /&gt;
&lt;BR /&gt;
The macro starts and the form loads.&lt;BR /&gt;
&lt;BR /&gt;
When I press the ok button nothing happens.&lt;BR /&gt;
&lt;BR /&gt;
I suspect it doesnt like me.hide but I dont kow what to replace it with.&lt;BR /&gt;
&lt;BR /&gt;
Have tried frmname.hide still nothing happens.</description>
      <pubDate>Fri, 29 Jan 2010 05:27:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617357#M14202</guid>
      <dc:creator>stevec781</dc:creator>
      <dc:date>2010-01-29T05:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617358#M14203</link>
      <description>Hi Steve,&lt;BR /&gt;
&lt;BR /&gt;
Do you have a sub to trap the OK button click event?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
&lt;BR /&gt;
stevec781 wrote:&lt;BR /&gt;
&amp;gt; The problem is it wont respond to button clicks on the form at all so I cant debug it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The macro starts and the form loads.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; When I press the ok button nothing happens.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I suspect it doesnt like me.hide but I dont kow what to replace it with.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Have tried frmname.hide still nothing happens.&lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Fri, 29 Jan 2010 12:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617358#M14203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-29T12:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617359#M14204</link>
      <description>Yes it runs fine on my old 32 bit machine.  If I take the code and just put it in a module it runs fine on 64 bit so I know the code is fine.  I just cant get it to run from the from which I need as it has all the combo boxes etc.&lt;BR /&gt;
&lt;BR /&gt;
I know in Inventor 64 bit you cant use me.hide so I am wondering of Autocad has a similar limitation.</description>
      <pubDate>Sun, 31 Jan 2010 15:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617359#M14204</guid>
      <dc:creator>stevec781</dc:creator>
      <dc:date>2010-01-31T15:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617360#M14205</link>
      <description>Because VBA forms run in a separate 32 bit process on x64,&lt;BR /&gt;
Me.Hide will probably not work the way it does in 32 bit AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
Essentially, your VBA application is like a standalone VB program&lt;BR /&gt;
that runs in its own process, so your form does not behave like a&lt;BR /&gt;
modal dialog in 64 bit AutoCAD, as it does in 32 bit AutoCAD, it&lt;BR /&gt;
instead behaves like a window of another running application.&lt;BR /&gt;
&lt;BR /&gt;
At some point, you have to come to terms with the fact that VBA&lt;BR /&gt;
is essentially dead because of this and numerous other issues&lt;BR /&gt;
just like it, and you will need to migrate to VB.NET. It's probably&lt;BR /&gt;
in your best interest to start thinking about doing that now, rather&lt;BR /&gt;
than wasting a lot of time trying to get something to work on 64 bit&lt;BR /&gt;
VBA.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;STEVEC781&gt; wrote in message news:6319130@discussion.autodesk.com...&lt;BR /&gt;
Hi Guys&lt;BR /&gt;
I have upgraded to 64 bit Autocad and have lots of macros.  I read somewhere &lt;BR /&gt;
that some code changes are need.  One from memory was something about the me &lt;BR /&gt;
object not being supported and there was some code to fix this.  eg me.hide on a &lt;BR /&gt;
form wont work.&lt;BR /&gt;
&lt;BR /&gt;
Problem is I dont remember where I saw it and cant find it on google.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know where this guide can be found?&lt;BR /&gt;
&lt;BR /&gt;
I need to get my macros running.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Steve&lt;/STEVEC781&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:28:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617360#M14205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T12:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617361#M14206</link>
      <description>Yes it looks like having to learn .net cant be avoided but I was hoping that someone might know of a quick work around.&lt;BR /&gt;
&lt;BR /&gt;
In the Inventor help they say this&lt;BR /&gt;
&lt;BR /&gt;
Use of Me in Document projects is not supported. You can embed a VBA &lt;BR /&gt;
project in any Inventor document. Usually in a macro within such a project, &lt;BR /&gt;
you can use Me property to refer to the document itself. On the VBA for &lt;BR /&gt;
64-bit Inventor, Me object no longer refers to the document. Instead for 32 &lt;BR /&gt;
&amp;amp; 64 bit VBA compatibility, you will need to manually replace all the &lt;BR /&gt;
&lt;U&gt;references to Me by Me.InventorDocument&lt;/U&gt;.&lt;BR /&gt;
&lt;BR /&gt;
I cant find anything like it in the Autocad help. &lt;BR /&gt;
&lt;BR /&gt;
Is there a similar work around in acad?</description>
      <pubDate>Mon, 01 Feb 2010 13:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617361#M14206</guid>
      <dc:creator>stevec781</dc:creator>
      <dc:date>2010-02-01T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617362#M14207</link>
      <description>I think the documentation you cite is about the 'Document' object&lt;BR /&gt;
(the ThisDrawing class in AutoCAD VBA).&lt;BR /&gt;
&lt;BR /&gt;
Within the ThisDrawing class, code that uses 'Me.Something'&lt;BR /&gt;
should behave the same as code outside of that class, which&lt;BR /&gt;
uses 'ThisDrawing.Something'.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;STEVEC781&gt; wrote in message news:6327856@discussion.autodesk.com...&lt;BR /&gt;
Yes it looks like having to learn .net cant be avoided but I was hoping that &lt;BR /&gt;
someone might know of a quick work around.&lt;BR /&gt;
&lt;BR /&gt;
In the Inventor help they say this&lt;BR /&gt;
&lt;BR /&gt;
Use of Me in Document projects is not supported. You can embed a VBA&lt;BR /&gt;
project in any Inventor document. Usually in a macro within such a project,&lt;BR /&gt;
you can use Me property to refer to the document itself. On the VBA for&lt;BR /&gt;
64-bit Inventor, Me object no longer refers to the document. Instead for 32&lt;BR /&gt;
&amp;amp; 64 bit VBA compatibility, you will need to manually replace all the&lt;BR /&gt;
&lt;U&gt;references to Me by Me.InventorDocument&lt;/U&gt;.&lt;BR /&gt;
&lt;BR /&gt;
I cant find anything like it in the Autocad help.&lt;BR /&gt;
&lt;BR /&gt;
Is there a similar work around in acad?&lt;/STEVEC781&gt;</description>
      <pubDate>Tue, 02 Feb 2010 12:41:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617362#M14207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T12:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617363#M14208</link>
      <description>We have the same problem - the form button events do not even get triggerred and the form will not close without stopping the code, which can only be done if in debug mode. If you haven't opened up the editor before running the code, which is not an option for end users as it's password protected, the only option is to End Task AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
We write all our new stuff in .Net but have a lot of legacy code out there and we didn't realise we would have this problem as it works fine on 32 bit Vista, and Autodesk do not mention that there will be a problem with this on 64 bit so we didn't know until somebody bought a new PC with 64 bit Vista on!&lt;BR /&gt;
&lt;BR /&gt;
Anyone any ideas short of a costly rewrite?</description>
      <pubDate>Thu, 22 Apr 2010 14:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617363#M14208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-22T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Changes Required to VBA Macro so it runs on 64 bit system</title>
      <link>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617364#M14209</link>
      <description>I posted an update to this but it appears to have disappeared into the ether.&lt;BR /&gt;
I just wanted to qualify that it is when the form is loaded modelessly that it is inactive and cannot be closed</description>
      <pubDate>Thu, 22 Apr 2010 15:30:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/code-changes-required-to-vba-macro-so-it-runs-on-64-bit-system/m-p/2617364#M14209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-22T15:30:55Z</dc:date>
    </item>
  </channel>
</rss>

