When I run the following over an open/active/maximized Excel window, it doesn't minimize. I searched AHK and played around with WinWait, but still same problem
F9::
FileToName := "MyFile"
xlApp := ComObjActive("Excel.Application")
FileTo_Path := A_Desktop "\" FileToName ".xlsx"
FileTo := xlApp.Workbooks.Open(FileTo_Path)
WinMinimize, Microsoft Excel
WinMinimize open/active Excel window not working
Re: WinMinimize open/active Excel window not working
Use this to check the title of the active window:
You could try:
Is any of your script working? Try adding SoundBeep or a MsgBox, perhaps you need to run the script as Admin.
Code: Select all
WinGetTitle, vWinTitle, A
MsgBox, % vWinTitle
Code: Select all
WinMinimize, ahk_class XLMAIN
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: WinMinimize open/active Excel window not working
This worked great. You the manjeeswg wrote: You could try:
WinMinimize, ahk_class XLMAIN
Who is online
Users browsing this forum: Draken and 201 guests