<?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 Running a vb6.0 project from vba code in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332701#M89317</link>
    <description>Is it possible to run an executable I made in vb6.0 right from my vba&lt;BR /&gt;
code?  If so, can anyone tell me how this is done?  Thanks in advance.</description>
    <pubDate>Mon, 20 Nov 2000 08:59:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-11-20T08:59:53Z</dc:date>
    <item>
      <title>Running a vb6.0 project from vba code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332701#M89317</link>
      <description>Is it possible to run an executable I made in vb6.0 right from my vba&lt;BR /&gt;
code?  If so, can anyone tell me how this is done?  Thanks in advance.</description>
      <pubDate>Mon, 20 Nov 2000 08:59:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332701#M89317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running a vb6.0 project from vba code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332702#M89318</link>
      <description>Yes. If your app is an ActiveX server, use GetInterfaceObject. If not, use&lt;BR /&gt;
Shell.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
The Common Sense Copyright&lt;BR /&gt;
You are free to do whatever you want with the information in this post.&lt;BR /&gt;
I only ask two things:&lt;BR /&gt;
1) If you reprint it, please credit me as the author.&lt;BR /&gt;
2) If you make money with it, please cut me in.&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Monica" &lt;MEISFELD&gt; wrote in message&lt;BR /&gt;
news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt;   Is it possible to run an executable I made in vb6.0 right from my vba&lt;BR /&gt;
&amp;gt; code?  If so, can anyone tell me how this is done?  Thanks in advance.&lt;BR /&gt;
&amp;gt;&lt;/MEISFELD&gt;</description>
      <pubDate>Mon, 20 Nov 2000 09:06:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332702#M89318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T09:06:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332703#M89319</link>
      <description>Actually, the sole purpose of this short vba program is to allow the user,&lt;BR /&gt;
while in autocad, to click on my toolbar icon and run a vb6.0 .exe.  The&lt;BR /&gt;
only way I know how to do this is through vba code.  Is this thinking&lt;BR /&gt;
correct?&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:2DD4370E09DC35FF516457815C3A964E@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Yes. If your app is an ActiveX server, use GetInterfaceObject. If not, use&lt;BR /&gt;
&amp;gt; Shell.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; The Common Sense Copyright&lt;BR /&gt;
&amp;gt; You are free to do whatever you want with the information in this post.&lt;BR /&gt;
&amp;gt; I only ask two things:&lt;BR /&gt;
&amp;gt; 1) If you reprint it, please credit me as the author.&lt;BR /&gt;
&amp;gt; 2) If you make money with it, please cut me in.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Monica" &lt;MEISFELD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt;   Is it possible to run an executable I made in vb6.0 right from my vba&lt;BR /&gt;
&amp;gt; &amp;gt; code?  If so, can anyone tell me how this is done?  Thanks in advance.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MEISFELD&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Mon, 20 Nov 2000 09:25:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332703#M89319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332704#M89320</link>
      <description>Hi Monica,&lt;BR /&gt;
    You can use startapp. In a toolbar button:&lt;BR /&gt;
(startapp "mypath/myfile.exe")&lt;BR /&gt;
&lt;BR /&gt;
-Josh&lt;BR /&gt;
&lt;BR /&gt;
Monica wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Actually, the sole purpose of this short vba program is to allow the user,&lt;BR /&gt;
&amp;gt; while in autocad, to click on my toolbar icon and run a vb6.0 .exe.  The&lt;BR /&gt;
&amp;gt; only way I know how to do this is through vba code.  Is this thinking&lt;BR /&gt;
&amp;gt; correct?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:2DD4370E09DC35FF516457815C3A964E@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Yes. If your app is an ActiveX server, use GetInterfaceObject. If not, use&lt;BR /&gt;
&amp;gt; &amp;gt; Shell.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; The Common Sense Copyright&lt;BR /&gt;
&amp;gt; &amp;gt; You are free to do whatever you want with the information in this post.&lt;BR /&gt;
&amp;gt; &amp;gt; I only ask two things:&lt;BR /&gt;
&amp;gt; &amp;gt; 1) If you reprint it, please credit me as the author.&lt;BR /&gt;
&amp;gt; &amp;gt; 2) If you make money with it, please cut me in.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Monica" &lt;MEISFELD&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   Is it possible to run an executable I made in vb6.0 right from my vba&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; code?  If so, can anyone tell me how this is done?  Thanks in advance.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;/MEISFELD&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Mon, 20 Nov 2000 09:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332704#M89320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T09:33:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332705#M89321</link>
      <description>tried that suggestion, but I got this error ;&lt;BR /&gt;
"unknown command STARTAPP"&lt;BR /&gt;
&lt;BR /&gt;
"Minkwitz Design" &lt;MDS&gt; wrote in message&lt;BR /&gt;
news:3A196051.3858DA19@minkwitz-design.com...&lt;BR /&gt;
&amp;gt; Hi Monica,&lt;BR /&gt;
&amp;gt;     You can use startapp. In a toolbar button:&lt;BR /&gt;
&amp;gt; (startapp "mypath/myfile.exe")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Josh&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Monica wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Actually, the sole purpose of this short vba program is to allow the&lt;BR /&gt;
user,&lt;BR /&gt;
&amp;gt; &amp;gt; while in autocad, to click on my toolbar icon and run a vb6.0 .exe.  The&lt;BR /&gt;
&amp;gt; &amp;gt; only way I know how to do this is through vba code.  Is this thinking&lt;BR /&gt;
&amp;gt; &amp;gt; correct?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:2DD4370E09DC35FF516457815C3A964E@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Yes. If your app is an ActiveX server, use GetInterfaceObject. If not,&lt;BR /&gt;
use&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Shell.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; The Common Sense Copyright&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; You are free to do whatever you want with the information in this&lt;BR /&gt;
post.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I only ask two things:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 1) If you reprint it, please credit me as the author.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 2) If you make money with it, please cut me in.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "Monica" &lt;MEISFELD&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   Is it possible to run an executable I made in vb6.0 right from my&lt;BR /&gt;
vba&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; code?  If so, can anyone tell me how this is done?  Thanks in&lt;BR /&gt;
advance.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MEISFELD&gt;&lt;/FRANKO&gt;&lt;/MDS&gt;</description>
      <pubDate>Mon, 20 Nov 2000 10:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332705#M89321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T10:19:48Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332706#M89322</link>
      <description>&lt;BR /&gt;
&lt;BR /&gt;
Did you place it in the parenthesis so that it is recognized as lisp? In&lt;BR /&gt;
addition, add a semicolon at the end for a return stroke. From the acad&lt;BR /&gt;
help files on the topic:&lt;BR /&gt;
&lt;P&gt;You can use the acad.pgp file to define a new AutoCAD command that runs&lt;BR /&gt;
an external command to start your application. The following example defines&lt;BR /&gt;
the RUNAPP1 command, which runs the application app1.exe in the C:\vbapps\&lt;BR /&gt;
directory. (Add this code to the external commands section of your acad.pgp&lt;BR /&gt;
file.)&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;RUNAPP1, start c:\vbapps\app1, 0&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;If your application requires command line parameters, you can use the&lt;BR /&gt;
following code:&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;RUNAPP2, start c:\vbapps\app2, 0, *Parameters: ,&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;The previous example defines the RUNAPP2 command, which prompts you&lt;BR /&gt;
for parameters and then passes them to your application. For more information&lt;BR /&gt;
on the acad.pgp file, see "acad.pgp&amp;#151;Program Parameters File."&lt;BR /&gt;
&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;You can also use the AutoLISP startapp function&lt;BR /&gt;
to start an application that makes use of Automation. Once AutoLISP starts&lt;BR /&gt;
the external application, it has no control over its actions. You can,&lt;BR /&gt;
however, use AutoLISP to locate and run different applications based on&lt;BR /&gt;
certain parameters.&lt;/FONT&gt;&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Starts a Windows application&lt;BR /&gt;
&lt;BR /&gt;(startapp appcmd [file])&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Arguments&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;appcmd&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;A string that specifies the application to execute. If appcmd does not&lt;BR /&gt;
include a full path name, startapp searches the directories in the PATH&lt;BR /&gt;
environment variable for the application.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;file&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;A string that specifies the file name to be opened.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Return Values&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;An integer greater than 0, if successful, otherwise nil.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Examples&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;The following code starts the Windows Notepad and opens the acad.lsp&lt;BR /&gt;
file.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Command: (startapp "notepad" "acad.lsp")&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;33&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;If an argument has embedded spaces, it must be surrounded by literal&lt;BR /&gt;
double quotes. For example, to edit the file my&amp;nbsp; stuff.txt with Notepad,&lt;BR /&gt;
use the following syntax:&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Command: (startapp "notepad.exe" "\"my stuff.txt\"")&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;33&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;-Josh&lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;Monica wrote:&lt;BR /&gt;
&lt;/P&gt;&lt;BLOCKQUOTE type="CITE"&gt;tried that suggestion, but I got this error ;&lt;BR /&gt;
&lt;BR /&gt;"unknown command STARTAPP"&lt;BR /&gt;
&lt;P&gt;"Minkwitz Design" &amp;lt;mds@minkwitz-design.com&amp;gt; wrote in message&lt;BR /&gt;
&lt;BR /&gt;&lt;A href="news:3A196051.3858DA19@minkwitz-design.com"&gt;news:3A196051.3858DA19@minkwitz-design.com&lt;/A&gt;...&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; Hi Monica,&lt;BR /&gt;
&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use startapp. In a toolbar button:&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; (startapp "mypath/myfile.exe")&lt;BR /&gt;
&lt;BR /&gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; -Josh&lt;BR /&gt;
&lt;BR /&gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; Monica wrote:&lt;BR /&gt;
&lt;BR /&gt;&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; Actually, the sole purpose of this short vba program is to allow&lt;BR /&gt;
the&lt;BR /&gt;
&lt;BR /&gt;user,&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; while in autocad, to click on my toolbar icon and run a vb6.0 .exe.&amp;nbsp;&lt;BR /&gt;
The&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; only way I know how to do this is through vba code.&amp;nbsp; Is this&lt;BR /&gt;
thinking&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; correct?&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; "Frank Oquendo" &amp;lt;franko@nospam.stonemedia.com&amp;gt; wrote in message&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A href="news:2DD4370E09DC35FF516457815C3A964E@in.WebX.SaUCah8kaAW"&gt;news:2DD4370E09DC35FF516457815C3A964E@in.WebX.SaUCah8kaAW&lt;/A&gt;...&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; Yes. If your app is an ActiveX server, use GetInterfaceObject.&lt;BR /&gt;
If not,&lt;BR /&gt;
&lt;BR /&gt;use&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; Shell.&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; The Common Sense Copyright&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; You are free to do whatever you want with the information in&lt;BR /&gt;
this&lt;BR /&gt;
&lt;BR /&gt;post.&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; I only ask two things:&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; 1) If you reprint it, please credit me as the author.&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; 2) If you make money with it, please cut me in.&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; &lt;A href="http://www.acadx.com"&gt;http://www.acadx.com&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; "Monica" &amp;lt;meisfeld@supersky.com&amp;gt; wrote in message&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; &lt;A href="news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW"&gt;news:9122EFCAB50BE2B75E246D5B295E5FE4@in.WebX.SaUCah8kaAW&lt;/A&gt;...&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; Is it possible to run an executable I made in vb6.0&lt;BR /&gt;
right from my&lt;BR /&gt;
&lt;BR /&gt;vba&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; code?&amp;nbsp; If so, can anyone tell me how this is done?&amp;nbsp;&lt;BR /&gt;
Thanks in&lt;BR /&gt;
&lt;BR /&gt;advance.&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;
&amp;lt;</description>
      <pubDate>Mon, 20 Nov 2000 11:27:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/running-a-vb6-0-project-from-vba-code/m-p/332706#M89322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-11-20T11:27:37Z</dc:date>
    </item>
  </channel>
</rss>

