Appactivate not always work using TASKID

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top