Using AppActivate and Sendkeys in VBA shell command

后端 未结 6 1015
一个人的身影
一个人的身影 2021-01-05 16:30

I want to switch back and forth between application with the shell command in VBA. I am using SendKeys to do stuff in process A then move to process B, then to process A the

6条回答
  •  情歌与酒
    2021-01-05 17:11

    Try sendkeys "%{tab}" to switch windows but then keep only 2 active windows.

    or try appactivate only after sendkeys {Tab} so that text entry box is not selected before switchibg windows cmd.

    or try try appactivate window name, 1 then sleep 2000 °to allow time to bring that window into focus

提交回复
热议问题