How do I Task Switch to another process in VBA if all I have is a Process Id?
Posted on 2004-04-04
I am writting a subroutine that needs to switch to a window thats running in another process. I tried using "AppActivate" to switch windows but my program breaks when a user opens a document or a child window in the target process. I tried using the "FindWindow" and "SetForgroundWindow" functions from user32 but they had similar problem. Does anyone know of a way around this problem?