Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing focus to another application
If shell out to another application how can I pass the focus to that
application. When I run: Shell "notepad.exe C:\Temp\MyFile.txt" it starts notepad OK but the focus remains with excel. I want the focus to goto notepad. Thanks for any help Fred |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing focus to another application
Fred,
Look at the 2nd argument to Shell. Possibly you want "vbNormalFocus" NickHK "Fred" <leavemealone@home l... If shell out to another application how can I pass the focus to that application. When I run: Shell "notepad.exe C:\Temp\MyFile.txt" it starts notepad OK but the focus remains with excel. I want the focus to goto notepad. Thanks for any help Fred |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing focus to another application
hey
Shell "c:\windows\notepad.exe", 1 will activate your window here is another states 0 - hide 1 - normal 2 - minimized 3 - maximized 4 - normal size but not focused 5 - minimized and not focused i hope i have answered your question |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel selected range not showing when Excel application not in focus | Excel Discussion (Misc queries) | |||
Application.GetOpenFilename vs Application.Dialogs(xlDialogsOpen) | Excel Programming | |||
Replace application.RTD property by Application.RTDServers collect | Excel Programming | |||
passing arguments by postion through application.run | Excel Programming | |||
macro to close excel application other than application.quit | Excel Programming |