ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem with AppActivate. (https://www.excelbanter.com/excel-programming/342707-problem-appactivate.html)

BristolBloos

Problem with AppActivate.
 
Hi,

Please see the following code that I am using:
-----------------------------------------------
AppActivate ("App1 ")
Do
Sleep 2000
Loop Until UCase(Left(GetWinInfo, 9)) = "App1 "
-----------------------------------------------

After this piece of code, I basically send some user input/action
on to the new window using SendKeys function.

If the application with the title "App1 " is minimised (not focus) then
my code is not working but if it has focus then it works. Is there
anything that I need to modify in the code above so that the
application window should be shown and my Sendkeys should work.

I hope I have explained it properly.

Thanks


BristolBloos

Problem with AppActivate.
 
Can someone please look into this.

Thanks



All times are GMT +1. The time now is 03:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com