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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a application launched by a vba macro?

Status
Not open for further replies.

Paco75

Programmer
Oct 11, 2001
239
US
Hi there,

I want to know how to close a program launched by a vba macro... I got the TaskId in a var called dblProgramTaskID I should be able to end the program after it has been running? If someone know about this one I will be happy to know.

thanks



 
Im opening the application this way...

dblProgramTaskID = Interaction.Shell(
"C:\Program Files\Adobe\Acrobat 4.0\Distillr\AcroDist.exe " + "C:\WINNT\Temp\RequestPreview.txt", VbAppWinStyle.vbMinimizedNoFocus)

this opens Acrobat Distiller and crate a PDF with the data file in parameters... but after this I wish to close Distiller. So if someone know how to close a application opened with Inereaction.Shell. Please tell me!

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top