Find taskID

I am trying to use the AppActivate statement, but I need to know the TaskId of the App that I want to give focus.  How do I find the TaskID of a particular running app through code.
Who is Participating?
slobstarConnect With a Mentor Commented:
Here are two options:

Either type the title of the application.
AppActivate "Microsoft Word"

Or you can use the return value (taskID) of the Shell function.
MyAppID = Shell("C:\WORD\WINWORD.EXE", 1)
AppActivate MyAppID

Good luck!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.