![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: Queretaro, Mex.
Posts: 19
|
Hi,
I have a macro which opens an application using Shell. The problem i have is that the opened application becomes the active window but it remains minimized in the taskbar at the bottom. How do i do to maximize this window and keep it as the active one??? Thanks in advance for any help. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Use either:
Shell "notepad.exe", vbMaximizedFocus or Shell "notepad.exe", vbNormalFocus I had trouble with putting the parameters in parenthesis. I believe if they are in parenthesis, you have to say something like x = Shell("notepad.exe",vbMaximizedFocus) K |
|
|
|
|
|
#3 | |
|
New Member
Join Date: Feb 2002
Location: Queretaro, Mex.
Posts: 19
|
I used your first option. It works great!!!...that is what i needed.
Thnks again. Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|