![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Location: San Antonio, TX
Posts: 186
|
I am trying to use the sendkeys method as described in an earlier suggestion. I can not get it to toggle between two open windows (Alt-Tab)
SendKeys ("%{TAB}") This doesn't seem to be working (yet works when I do this manually).....Any Ideas?
__________________
Russell |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Would it be better (or possible) to use "AppActivate" instead of ALT+TAB?
For example, open up Notepad and then in a standard module put in this code:
This will activate the window with the caption "Untitled - Notepad". |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|