General information
Category:
Windows API functions
Cetin,
Yes, I saw it in the past. But what is intriguing, that now while not using automation and playing with omly API I get negative windowhandles in similar situation. It looks strange to me. I thought it could be only positive valid numbers. And yes, I am able to close Excel via sendmessage using negative handle.
>>>>>>>>>>>>>>>previous message
Yuri,
BTW as a sidenote if you're using Excel tasks via automation be sure to keep oExcel in scope till Excel shuts down and do not attempt to use oExcel after it's shutdown. Otherwise you can expect crashes (like the one you said 'Memory couldn't...') ie: result is different when user presses Ctrl+F4 or Alt+F4 in Excel.
Cetin
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only