-
July 19th, 2021, 04:33 AM
#1
How to kill Excel process?
Hi,
I'm doing an action in first debug like this:
1, Create excel instance.
2, During debugging, turn it off suddenly.
In some case, this processes still run in background,
so when i use getobject code get the instance but now they are no longer valid.
I used the following code in second debug but it doesn't work?
//check [getobject] if catch error then terminate process and create new one:
::PostMessage(hWnd, WM_CLOSE, 0, 0);
How do I kill this process?
Thanks you!
Last edited by Dang.D.Khanh; July 19th, 2021 at 04:38 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|