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
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