<?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: VBA launch via menu button in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760870#M31289</link>
    <description>&lt;CAN&gt;
Not if you don't know it's name, nor are willing&lt;BR /&gt;
to learn anything about what you're asking.&lt;BR /&gt;
&lt;BR /&gt;
 wrote in message news:5325914@discussion.autodesk.com...&lt;BR /&gt;
I do not understand that at all.&lt;BR /&gt;
&lt;BR /&gt;
Sub stub()&lt;BR /&gt;
...&lt;BR /&gt;
End sub&lt;BR /&gt;
&lt;BR /&gt;
can't go in a button macro.&lt;/CAN&gt;</description>
    <pubDate>Tue, 12 Sep 2006 13:58:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-12T13:58:51Z</dc:date>
    <item>
      <title>VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760864#M31283</link>
      <description>Can anyone tell me why I would get the command line error, "Macro not found" when I run the following macro in a button;&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb" &lt;BR /&gt;
&lt;BR /&gt;
The macro "excel_launch.dvb" is in the correct directory, so I am at a loss.</description>
      <pubDate>Mon, 11 Sep 2006 20:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760864#M31283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760865#M31284</link>
      <description>You are trying to run a DVB not a macro. Have a look in the help file for the correct useage of vbaload &amp;amp; vbarun.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Mon, 11 Sep 2006 23:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760865#M31284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T23:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760866#M31285</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You are only calling your program, not its internal macro.  You need to &lt;BR /&gt;
nominate that as well.&lt;BR /&gt;
&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb!MyMacro"&lt;BR /&gt;
&lt;BR /&gt;
Search back through this NG, there are dozens of posts on this subject.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
 wrote in message news:5325206@discussion.autodesk.com...&lt;BR /&gt;
Can anyone tell me why I would get the command line error, "Macro not found" &lt;BR /&gt;
when I run the following macro in a button;&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb"&lt;BR /&gt;
&lt;BR /&gt;
The macro "excel_launch.dvb" is in the correct directory, so I am at a loss.</description>
      <pubDate>Mon, 11 Sep 2006 23:27:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760866#M31285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T23:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760867#M31286</link>
      <description>My apologies.  I have searched on "VBA launch button" and "VBA custom button" and "VBA from menu button" and I have narrowed it down to this;&lt;BR /&gt;
^C^C^P(vl-vbarun "c://myfolder//myproject.dvb!mymodule.mymacro")&lt;BR /&gt;
&lt;BR /&gt;
My problem is, I don't know what should be in the place of "mymodule.mymacro"&lt;BR /&gt;
This is where my confusion is coming from.&lt;BR /&gt;
Forgive me; I am new to VBA.

Message was edited by: TR Young</description>
      <pubDate>Tue, 12 Sep 2006 13:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760867#M31286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760868#M31287</link>
      <description>&lt;MY problem="" is=""&gt;
"mymodule.mymacro"&lt;BR /&gt;
What is the name of the module that contains the macro you want to run?&lt;BR /&gt;
What is the name of the macro?&lt;BR /&gt;
&lt;BR /&gt;
i.e. this would be called as [module1.stub]&lt;BR /&gt;
&lt;MODULE1&gt;&lt;BR /&gt;
    Sub stub()&lt;BR /&gt;
        ...&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;/MODULE1&gt;&lt;BR /&gt;
&lt;BR /&gt;
 wrote in message news:5325852@discussion.autodesk.com...&lt;BR /&gt;
My apologies.  I have searched on "VBA launch button" and "VBA custom &lt;BR /&gt;
button" and "VBA from menu button" and I have narrowed it down to this;&lt;BR /&gt;
^C^C^P(vl-vbarun "c://myfolder//myproject.dvb!mymodule.mymacro")&lt;BR /&gt;
&lt;BR /&gt;
My problem is, I don't know what should be in the place of &lt;BR /&gt;
"mymodule.mymacro"&lt;BR /&gt;
This is where my confusion is coming from.&lt;BR /&gt;
Forgive me; I am new to VBA.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: TR Young&lt;/MY&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760868#M31287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760869#M31288</link>
      <description>I do not understand that at all.&lt;BR /&gt;
&lt;BR /&gt;
Sub stub()&lt;BR /&gt;
...&lt;BR /&gt;
End sub&lt;BR /&gt;
&lt;BR /&gt;
can't go in a button macro.</description>
      <pubDate>Tue, 12 Sep 2006 13:51:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760869#M31288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T13:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760870#M31289</link>
      <description>&lt;CAN&gt;
Not if you don't know it's name, nor are willing&lt;BR /&gt;
to learn anything about what you're asking.&lt;BR /&gt;
&lt;BR /&gt;
 wrote in message news:5325914@discussion.autodesk.com...&lt;BR /&gt;
I do not understand that at all.&lt;BR /&gt;
&lt;BR /&gt;
Sub stub()&lt;BR /&gt;
...&lt;BR /&gt;
End sub&lt;BR /&gt;
&lt;BR /&gt;
can't go in a button macro.&lt;/CAN&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760870#M31289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760871#M31290</link>
      <description>Now I'm really lost.  What are you trying to say here?</description>
      <pubDate>Tue, 12 Sep 2006 14:40:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760871#M31290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T14:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760872#M31291</link>
      <description>&lt;THE macro=""&gt;
This is not a macro it's a container for your modules which&lt;BR /&gt;
are containers for your macros. Figure those out and you'll&lt;BR /&gt;
have your answer. Open the dvb and find the name of&lt;BR /&gt;
the macro you want to call, and the name of the module&lt;BR /&gt;
it's contained in.&lt;BR /&gt;
&lt;BR /&gt;
 wrote in message news:5326070@discussion.autodesk.com...&lt;BR /&gt;
Now I'm really lost.  What are you trying to say here?&lt;/THE&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:51:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760872#M31291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760873#M31292</link>
      <description>Enter "Learning VBA" into a google search box.&lt;BR /&gt;
There' s more to using VBA macro than just entering a file/folder path in &lt;BR /&gt;
the command line.&lt;BR /&gt;
First don't confuse a menu macro with a VBA macro.&lt;BR /&gt;
Second you need to know how a vba project is structured to get the sub &lt;BR /&gt;
routine's (macro) name and what arguments need to be passed to it .&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Murph&lt;BR /&gt;
-- &lt;BR /&gt;
http://mappingitout.blogspot.com/&lt;BR /&gt;
 wrote in message news:5326070@discussion.autodesk.com...&lt;BR /&gt;
Now I'm really lost.  What are you trying to say here?</description>
      <pubDate>Tue, 12 Sep 2006 15:01:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760873#M31292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760874#M31293</link>
      <description>Murph, Thanks for your reply.&lt;BR /&gt;
&lt;BR /&gt;
First, I have the VBA written and saved; it is a rather simple VBA that was in a tutorial that I found on this site.   I am simply trying to understand how to call the VBA program now by assigning the proper text into a custom button's command line.&lt;BR /&gt;
&lt;BR /&gt;
Second, in looking at my VBA code, where can I find the sub routine's name?  (If I could just learn these 2 things, I can really take off; I am pretty good at learning things and being able to piece things together to get what I need) Here is the code;&lt;BR /&gt;
&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton1_Click()&lt;BR /&gt;
    Dim excelapp As Excel.Application&lt;BR /&gt;
    Dim wbkobj As Workbook&lt;BR /&gt;
    Dim shtobj As Worksheet&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    excel_launch.Hide&lt;BR /&gt;
    Err.Clear&lt;BR /&gt;
    Set excelapp = GetObject(, "excel.application")&lt;BR /&gt;
    If Err  0 Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        Set excelapp = CreateObject("excel.application")&lt;BR /&gt;
        If Err  0 Then&lt;BR /&gt;
            MsgBox "Could not start Excel", vbExclamation&lt;BR /&gt;
            End&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
    excelapp.Visible = True&lt;BR /&gt;
    Set wbkobj = excelapp.Workbooks.Add&lt;BR /&gt;
    Set shtobj = excelapp.worsheets(1)&lt;BR /&gt;
    excel_launch.Show&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton2_Click()&lt;BR /&gt;
    Dim excelapp As Excel.Application&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    excel_launch.Hide&lt;BR /&gt;
    Err.Clear&lt;BR /&gt;
    Set excelapp = GetObject(, "excel.application")&lt;BR /&gt;
    If Err  0 Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        MsgBox "No Excel session running.", vbExclamation&lt;BR /&gt;
    End If&lt;BR /&gt;
    excelapp.Quit&lt;BR /&gt;
    excel_launch.Show&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub UserForm_Click()&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Tue, 12 Sep 2006 15:11:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760874#M31293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760875#M31294</link>
      <description>The code you have goes with a form (dialog box) You need to design the form &lt;BR /&gt;
with three command buttons on it and name them to match the code. Example: &lt;BR /&gt;
CommandButton1 to run the sub CommandButton1_Click. Then I would add a sub &lt;BR /&gt;
like so&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Main()&lt;BR /&gt;
UserForm1.Show;;; Userform1 would be the name of your form&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Now your macro to show the dialog to allow you to click on a button would &lt;BR /&gt;
be:&lt;BR /&gt;
&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb!Main"&lt;BR /&gt;
&lt;BR /&gt;
Murph&lt;BR /&gt;
-- &lt;BR /&gt;
http://mappingitout.blogspot.com/&lt;BR /&gt;
 wrote in message news:5326156@discussion.autodesk.com...&lt;BR /&gt;
Murph, Thanks for your reply.&lt;BR /&gt;
&lt;BR /&gt;
First, I have the VBA written and saved; it is a rather simple VBA that was &lt;BR /&gt;
in a tutorial that I found on this site.   I am simply trying to understand &lt;BR /&gt;
how to call the VBA program now by assigning the proper text into a custom &lt;BR /&gt;
button's command line.&lt;BR /&gt;
&lt;BR /&gt;
Second, in looking at my VBA code, where can I find the sub routine's name? &lt;BR /&gt;
(If I could just learn these 2 things, I can really take off; I am pretty &lt;BR /&gt;
good at learning things and being able to piece things together to get what &lt;BR /&gt;
I need) Here is the code;&lt;BR /&gt;
&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton1_Click()&lt;BR /&gt;
    Dim excelapp As Excel.Application&lt;BR /&gt;
    Dim wbkobj As Workbook&lt;BR /&gt;
    Dim shtobj As Worksheet&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    excel_launch.Hide&lt;BR /&gt;
    Err.Clear&lt;BR /&gt;
    Set excelapp = GetObject(, "excel.application")&lt;BR /&gt;
    If Err  0 Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        Set excelapp = CreateObject("excel.application")&lt;BR /&gt;
        If Err  0 Then&lt;BR /&gt;
            MsgBox "Could not start Excel", vbExclamation&lt;BR /&gt;
            End&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
    excelapp.Visible = True&lt;BR /&gt;
    Set wbkobj = excelapp.Workbooks.Add&lt;BR /&gt;
    Set shtobj = excelapp.worsheets(1)&lt;BR /&gt;
    excel_launch.Show&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton2_Click()&lt;BR /&gt;
    Dim excelapp As Excel.Application&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    excel_launch.Hide&lt;BR /&gt;
    Err.Clear&lt;BR /&gt;
    Set excelapp = GetObject(, "excel.application")&lt;BR /&gt;
    If Err  0 Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        MsgBox "No Excel session running.", vbExclamation&lt;BR /&gt;
    End If&lt;BR /&gt;
    excelapp.Quit&lt;BR /&gt;
    excel_launch.Show&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub UserForm_Click()&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Tue, 12 Sep 2006 16:13:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760875#M31294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760876#M31295</link>
      <description>I have the form created; that is where I am running into snags.  I am understanding how to create forms; every tutorial I have looked at and tried has showed me how to do that.  I can't find a tutorial that tells me how to assign a menu button to call up these forms.&lt;BR /&gt;
&lt;BR /&gt;
Now, for the sub that you are having me add... does it go at the beginning of my code or at the end, or does that not matter?  ( I am sure that is a newbie question)&lt;BR /&gt;
&lt;BR /&gt;
Question about this sub;&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Main()&lt;BR /&gt;
UserForm1.Show;;; Userform1 would be the name of your form&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Do I type this in EXACTLY as you have it shown, or do I leave out "Userform1 would be the name of your form"?&lt;BR /&gt;
&lt;BR /&gt;
and finally, is the first line of the sub, "Public Sub Main()"&lt;BR /&gt;
where the callout "main" comes from in the following;&lt;BR /&gt;
&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb!Main"&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate all your help!  I am finding everything but what I am looking for when I do my own searches!</description>
      <pubDate>Tue, 12 Sep 2006 16:41:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760876#M31295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T16:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760877#M31296</link>
      <description>You need to create a module then add the code in it.&lt;BR /&gt;
From the VBA editor top menu "Insert &amp;gt; Module  Then type this as it is &lt;BR /&gt;
replacing Userform1 with the name of your form&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Main()&lt;BR /&gt;
UserForm1.Show&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Yes "MAIN" is where the callout comes from in&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb!Main"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Murph&lt;BR /&gt;
-- &lt;BR /&gt;
http://mappingitout.blogspot.com/&lt;BR /&gt;
&lt;BR /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;BR /&gt;
 wrote in message news:5326334@discussion.autodesk.com...&lt;BR /&gt;
&lt;BR /&gt;
I have the form created; that is where I am running into snags.  I am &lt;BR /&gt;
understanding how to create forms; every tutorial I have looked at and tried &lt;BR /&gt;
has showed me how to do that.  I can't find a tutorial that tells me how to &lt;BR /&gt;
assign a menu button to call up these forms.&lt;BR /&gt;
&lt;BR /&gt;
Now, for the sub that you are having me add... does it go at the beginning &lt;BR /&gt;
of my code or at the end, or does that not matter?  ( I am sure that is a &lt;BR /&gt;
newbie question)&lt;BR /&gt;
&lt;BR /&gt;
Question about this sub;&lt;BR /&gt;
&lt;BR /&gt;
Public Sub Main()&lt;BR /&gt;
UserForm1.Show;;; Userform1 would be the name of your form&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Do I type this in EXACTLY as you have it shown, or do I leave out "Userform1 &lt;BR /&gt;
would be the name of your form"?&lt;BR /&gt;
&lt;BR /&gt;
and finally, is the first line of the sub, "Public Sub Main()"&lt;BR /&gt;
where the callout "main" comes from in the following;&lt;BR /&gt;
&lt;BR /&gt;
^C^C-vbarun "V:/VBA/excel_launch.dvb!Main"&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate all your help!  I am finding everything but what I am &lt;BR /&gt;
looking for when I do my own searches!</description>
      <pubDate>Tue, 12 Sep 2006 19:15:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760877#M31296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760878#M31297</link>
      <description>A-ha!  That did it!  everything worked like I wanted it to until I clicked on the 'Quit' button, then I got this error in the command line;&lt;BR /&gt;
Macro name: "V:/VBA/EXCEL_LAUNCH.dvb!xll" Execution error&lt;BR /&gt;
&lt;BR /&gt;
Even though I got the error, everything worked like I wanted it to.  Any ideas about the error?&lt;BR /&gt;
&lt;BR /&gt;
And Murph, thanks for the time you are spending with me on this!</description>
      <pubDate>Tue, 12 Sep 2006 19:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760878#M31297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760879#M31298</link>
      <description>Taking a guess but if your Quit button is commandbutton3&lt;BR /&gt;
you need to change this&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
to&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
userform1.hide&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Murph&lt;BR /&gt;
&lt;NOT a="" vba="" guru=""&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
http://mappingitout.blogspot.com/&lt;BR /&gt;
 wrote in message news:5326700@discussion.autodesk.com...&lt;BR /&gt;
A-ha!  That did it!  everything worked like I wanted it to until I clicked &lt;BR /&gt;
on the 'Quit' button, then I got this error in the command line;&lt;BR /&gt;
Macro name: "V:/VBA/EXCEL_LAUNCH.dvb!xll" Execution error&lt;BR /&gt;
&lt;BR /&gt;
Even though I got the error, everything worked like I wanted it to.  Any &lt;BR /&gt;
ideas about the error?&lt;BR /&gt;
&lt;BR /&gt;
And Murph, thanks for the time you are spending with me on this!&lt;/NOT&gt;</description>
      <pubDate>Tue, 12 Sep 2006 20:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760879#M31298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T20:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760880#M31299</link>
      <description>That sealed it.  Thank you, Murph!</description>
      <pubDate>Tue, 12 Sep 2006 21:00:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760880#M31299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T21:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760881#M31300</link>
      <description>"Murph" &lt;ASK&gt; wrote in message&lt;BR /&gt;
news:5326785@discussion.autodesk.com...&lt;BR /&gt;
Taking a guess but if your Quit button is commandbutton3&lt;BR /&gt;
you need to change this&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
to&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
userform1.hide&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
actually if that were the button to quit the application (i didn't see the&lt;BR /&gt;
beginning of this thread)&lt;BR /&gt;
you might prefer&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
&lt;BR /&gt;
Unload Me&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
userform1.hide is like a temporary state where the form is hidden(but still&lt;BR /&gt;
loaded and running) and presumably brought back to view later in prog with&lt;BR /&gt;
userform1.show&lt;BR /&gt;
&lt;BR /&gt;
Unload will close the form and perform any required cleanup provided for in&lt;BR /&gt;
the Terminate event of the form&lt;/ASK&gt;</description>
      <pubDate>Wed, 13 Sep 2006 01:15:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760881#M31300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T01:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBA launch via menu button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760882#M31301</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
There is a further difference between:&lt;BR /&gt;
&lt;BR /&gt;
me.hide and&lt;BR /&gt;
unload me&lt;BR /&gt;
&lt;BR /&gt;
In the first case when the form is called again with .show the Activate code &lt;BR /&gt;
is run whereas if the form was uloaded, both the initialize and activate &lt;BR /&gt;
code is run.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
"MP" &lt;NOSPAM&gt; wrote in message &lt;BR /&gt;
news:5327056@discussion.autodesk.com...&lt;BR /&gt;
"Murph" &lt;ASK&gt; wrote in message&lt;BR /&gt;
news:5326785@discussion.autodesk.com...&lt;BR /&gt;
Taking a guess but if your Quit button is commandbutton3&lt;BR /&gt;
you need to change this&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
    End&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
to&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
userform1.hide&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
actually if that were the button to quit the application (i didn't see the&lt;BR /&gt;
beginning of this thread)&lt;BR /&gt;
you might prefer&lt;BR /&gt;
Private Sub CommandButton3_Click()&lt;BR /&gt;
&lt;BR /&gt;
Unload Me&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
userform1.hide is like a temporary state where the form is hidden(but still&lt;BR /&gt;
loaded and running) and presumably brought back to view later in prog with&lt;BR /&gt;
userform1.show&lt;BR /&gt;
&lt;BR /&gt;
Unload will close the form and perform any required cleanup provided for in&lt;BR /&gt;
the Terminate event of the form&lt;/ASK&gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 13 Sep 2006 03:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-launch-via-menu-button/m-p/1760882#M31301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T03:52:52Z</dc:date>
    </item>
  </channel>
</rss>

