Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Application from VB

Status
Not open for further replies.

ajp18

Programmer
Jun 13, 2003
57
US
Hi,

I need to close a specific file or document (*.doc,*.txt,*.ppt) from VB.

Thanks in advance
 
app.activedocument.close

where app is whatever app object reference you created before.

Do a search for createobject on the forums and you will find more about it if you don't know how to.


Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
I am using ShellExecuteEx API to launch the application.

I just would like to close the open application when I unload the form.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top