<?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: Launch and run a program in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000009#M24737</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
It's not really a good idea to use VBA to run scripts.&lt;BR /&gt;
&lt;BR /&gt;
I've never thought of this a problem solution, so haven't looked for ways to &lt;BR /&gt;
do it.&lt;BR /&gt;
&lt;BR /&gt;
I'd expect VBA will be able to start the script with something like:&lt;BR /&gt;
&lt;BR /&gt;
strCommand = "Script" &amp;amp; vbcr &amp;amp; "Autoit" &amp;amp; vbcr&lt;BR /&gt;
ThisDrawing.SendCommand strCommand&lt;BR /&gt;
&lt;BR /&gt;
However, without sophisticated programming, VBA will not know when the &lt;BR /&gt;
script finishes, so it will continue on with its own code.  This won't &lt;BR /&gt;
matter if running the script is the last thing the VBA code does.&lt;BR /&gt;
&lt;BR /&gt;
You may be better to code the actions of the script into the VBA program &lt;BR /&gt;
itself, or run the VBA followed by the script from a menu command.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
&lt;BR /&gt;
"Kiwi Russ" &lt;RUSSELL&gt; wrote in message &lt;BR /&gt;
news:5633288@discussion.autodesk.com...&lt;BR /&gt;
I would like to Run a script program called "Autoit" through VBA. At the&lt;BR /&gt;
moment I find the script file known as a *.au3 then right click on it and&lt;BR /&gt;
from the context menu select "run" to activate it. Can something be written&lt;BR /&gt;
in VBA that will acitivate the file? I don't know that much about VBA - . I&lt;BR /&gt;
know alot more about Visual LISP. help would be be appreciated!&lt;BR /&gt;
thanks Russ&lt;/RUSSELL&gt;</description>
    <pubDate>Thu, 21 Jun 2007 11:46:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-06-21T11:46:13Z</dc:date>
    <item>
      <title>Launch and run a program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000007#M24735</link>
      <description>I would like to Run a script program called "Autoit" through VBA. At the &lt;BR /&gt;
moment I find the script file known as a *.au3 then right click on it and &lt;BR /&gt;
from the context menu select "run" to activate it. Can something be written &lt;BR /&gt;
in VBA that will acitivate the file? I don't know that much about VBA - . I &lt;BR /&gt;
know alot more about Visual LISP. help would be be appreciated!&lt;BR /&gt;
thanks Russ</description>
      <pubDate>Thu, 21 Jun 2007 07:41:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000007#M24735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-06-21T07:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Launch and run a program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000008#M24736</link>
      <description>you could make a mnu to load the files&lt;BR /&gt;
&lt;BR /&gt;
John&lt;BR /&gt;
/Now using findfile to locate the dvb files&lt;BR /&gt;
//i.e. dvb are located in the same folder as mnu file&lt;BR /&gt;
***MENUGROUP=Marking&lt;BR /&gt;
***POP11&lt;BR /&gt;
[Marking]&lt;BR /&gt;
[-&amp;gt;&amp;amp;Arrows]&lt;BR /&gt;
[Arrows Intx]^C^C(^c^c(vl-vbaload (findfile &lt;BR /&gt;
"marking-insert-Arrow-intx.dvb"))(command "-vbarun" &lt;BR /&gt;
"Module1.loadarrowsintx")&lt;BR /&gt;
[&amp;lt;-Arrows by Number]^C^C(^c^c(vl-vbaload (findfile &lt;BR /&gt;
"marking-insert-Arrow.dvb"))(command "-vbarun" "Module1.loadarrows")&lt;BR /&gt;
[--]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Kiwi Russ" &lt;RUSSELL&gt; wrote in message &lt;BR /&gt;
news:5633288@discussion.autodesk.com...&lt;BR /&gt;
I would like to Run a script program called "Autoit" through VBA. At the&lt;BR /&gt;
moment I find the script file known as a *.au3 then right click on it and&lt;BR /&gt;
from the context menu select "run" to activate it. Can something be written&lt;BR /&gt;
in VBA that will acitivate the file? I don't know that much about VBA - . I&lt;BR /&gt;
know alot more about Visual LISP. help would be be appreciated!&lt;BR /&gt;
thanks Russ&lt;/RUSSELL&gt;</description>
      <pubDate>Thu, 21 Jun 2007 10:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000008#M24736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-06-21T10:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Launch and run a program</title>
      <link>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000009#M24737</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
It's not really a good idea to use VBA to run scripts.&lt;BR /&gt;
&lt;BR /&gt;
I've never thought of this a problem solution, so haven't looked for ways to &lt;BR /&gt;
do it.&lt;BR /&gt;
&lt;BR /&gt;
I'd expect VBA will be able to start the script with something like:&lt;BR /&gt;
&lt;BR /&gt;
strCommand = "Script" &amp;amp; vbcr &amp;amp; "Autoit" &amp;amp; vbcr&lt;BR /&gt;
ThisDrawing.SendCommand strCommand&lt;BR /&gt;
&lt;BR /&gt;
However, without sophisticated programming, VBA will not know when the &lt;BR /&gt;
script finishes, so it will continue on with its own code.  This won't &lt;BR /&gt;
matter if running the script is the last thing the VBA code does.&lt;BR /&gt;
&lt;BR /&gt;
You may be better to code the actions of the script into the VBA program &lt;BR /&gt;
itself, or run the VBA followed by the script from a menu command.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
&lt;BR /&gt;
"Kiwi Russ" &lt;RUSSELL&gt; wrote in message &lt;BR /&gt;
news:5633288@discussion.autodesk.com...&lt;BR /&gt;
I would like to Run a script program called "Autoit" through VBA. At the&lt;BR /&gt;
moment I find the script file known as a *.au3 then right click on it and&lt;BR /&gt;
from the context menu select "run" to activate it. Can something be written&lt;BR /&gt;
in VBA that will acitivate the file? I don't know that much about VBA - . I&lt;BR /&gt;
know alot more about Visual LISP. help would be be appreciated!&lt;BR /&gt;
thanks Russ&lt;/RUSSELL&gt;</description>
      <pubDate>Thu, 21 Jun 2007 11:46:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/launch-and-run-a-program/m-p/2000009#M24737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-06-21T11:46:13Z</dc:date>
    </item>
  </channel>
</rss>

