• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

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.
0
timpeters
Asked:
timpeters
1 Solution
 
slobstarCommented:
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!
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now