sendkeys method
sendkeys method
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: sendkeys method

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Seattle Area, WA
    Posts
    212
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    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. #2
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    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:


    Public Sub Main()
    AppActivate "Untitled - Notepad"
    End Sub


    This will activate the window with the caption "Untitled - Notepad".



User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com