Appactivate not always work using TASKID

G

Guest

If I use Shell to open an app and then use the return value (TaskID) to
perform Appactivate it sometimes works but not always.

eg use taskid = shell(...) to open Word then appactivate taskid works fine.
But if I open some other app using shell then appactivate does not work.
 
G

Guest

Can you post the line of code you tried?

With the Shell command you need to specify the path of the application you
want to use openning the document, try instead using the FollowHyperlink to
open the documents

Application.FollowHyperlink "File Path and name"

In that case you don't need to specify which application you want to run, it
will use the default specified in windows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top