Thank you, Srajgopal.
But I have tried it too, it doesn't work for me. Because the window name for excel always changes. (e.g. "Microsoft Excel - Book1" or could be "Microsoft Excel - XYZ" if a spreadsheet is opened.)
The FindWindowA function searches by exact match window...
I want to use Power Builder to write function to check whether my computer is running "Microsoft Excel" or not.
I have tried the following code, but it doesn't work.
At local external function, I wrote:
FUNCTION long GetModuleHandleA(string modname) Library "Kernel32.dll"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.