Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default GetObject how does it works ???

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default GetObject how does it works ???

The answer depends on the application you are trying to use; how it was
programmed and what (if any) objects are available to outside apps, and
(especially) what they are called. Not every application supports automation.

For full details see the below:
http://msdn2.microsoft.com/en-us/library/e9waz863.aspx
--
- K Dales


"ina" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default GetObject how does it works ???

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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default GetObject how does it works ???

try


strPach = "C:\Program Files\PLaunch\PLaunch.exe"
Shell (strPack,1)


--
Atte.
?T Francisco T?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default GetObject how does it works ???

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

"ina" wrote in message
oups.com...
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





  #6   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default GetObject how does it works ???

thank all,

Nick I did not understand the tag with the help vba.

Ina

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default GetObject how does it works ???

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.

--
- K Dales


"ina" wrote:

thank all,

Nick I did not understand the tag with the help vba.

Ina


  #8   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default GetObject how does it works ???

thank you for your answer. I will ask them :)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetObject Maxi[_2_] Excel Programming 0 March 14th 06 10:23 AM
GetObject error 429 Brian Delaney Excel Programming 3 August 23rd 05 03:37 PM
GetObject function R Avery Excel Programming 3 October 5th 04 07:20 PM
GetObject Michael Excel Programming 3 June 16th 04 01:28 PM
GetObject-question Tom Excel Programming 1 June 10th 04 05:17 PM


All times are GMT +1. The time now is 03:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"