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

How do I close down the Adobe Acrobat via VB code???

Status
Not open for further replies.

JasonLiew

Programmer
Oct 15, 2001
37
SG
I have created a pdf file from words and wanted to copy this file over to another folder to overwrite the old copy of the pdf file. But in order to copy files, applications must be close first. Now my question is, how do i close down the pdf file just like i can close down the words documents. What exactly is the code like? By the way, i'm using macro. Please help me. This is really urgent. Thank You.

regards,
Jason
 
get application thread (getactivewindow)
send WM_CLOSE Message using Sendmessage api
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top