Close program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I know this is not the place to ask about this
but maybe someone can help

In vba for excel i can close the application with
appliction.quit
but in Visual basic where i want to create a exe file
how can i shot this down, i cant't find the code anywhere

hope someone can help?

regards alvin
 
assume you reference to the excel application is a variable xlApp

created with something like

set xlApp = CreateObject("Excel.Application")

then

xlApp.Quit
Set xlApp = Nothing
 
Hi

It is not a excel i ref to.
Is just a exe file i compile in VB
i just want a command buttom to close the program
but i can't find the code to it

Reards alvin



"Tom Ogilvy" skrev:
 
Well i have a form where i have a commandbuttom
if i use just end in this buttom i get an error
alvin


"Bob Phillips" skrev:
 
Then try

Unload formname

--
HTH

Bob Phillips

Alvin Hansen said:
Well i have a form where i have a commandbuttom
if i use just end in this buttom i get an error
alvin


"Bob Phillips" skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top