GetObject how does it works ???

I

ina

Hello,

How it works the function getobject for another program

Dim appPack as Object
Set appPack = GetObject("C:\Program Files\PLaunch\PLaunch.exe",
"PLaunch")
appPack.run

Seems that doesn't work.

Ina
 
I

ina

thank you.

I do not know exactly but if I do it with the shell command it works.
strPach = "C:\Program Files\PLaunch\PLaunch.exe"
Shell strPack

but the problem is that I can not close it when Excel close.
 
N

NickHK

Ina,
For GetObject to succeed, the application needs to be able to <From VBA
Help> Return a reference to an object provided by an ActiveX component
</From VBA Help>.
Does this PLaunch support this ?

NickHK
 
G

Guest

Nick was just saying that he was quoting from VBA help.

The important thing was that GetObject only works with applications that
were designed to make use of it (with ActiveX components). So it all depends
on PLaunch: does PLaunch use ActiveX components? We cannot answer that. You
would need to check with PLaunch, either their manual, their website, or
their tech support.
 

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