How to minimize a specific application

January 18, 2011 at 10:06:02
Specs: Windows 7, 12GHZ,12GB DDR5
iv'e only managed to well this:

Dim objShell
Set objShell = CreateObject("Shell.Application")

Wich minimizes all windows

See More: How to minimize a specific application

Report •

May 26, 2011 at 01:14:00
What you need to do is get the handle of the application first, if you know what the application is you can gets its handle and then tell it to minimise. Start by looking into the follow. Use google to search these

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long

Public Function HWndOfUserForm(UF As MSForms.UserForm) As Long

Report •
Related Solutions

Ask Question