Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default GetObject function

The last line in the help file for the GetObject function is:

You can't use GetObject to obtain a reference to a class created with
Visual Basic.

Why not? I was hoping to have some COM object (created with VB6, or
maybe VB.NET) that I load into Excel that keeps track of certain
application level events, which I can then call the class of from any
VBA-enabled app using the GetObject function, and get data from it. Is
this not possible?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default GetObject function

It is not possible using GetObject on a VB class. Use C++ to create your
object (I don't know the details, but I am sure they can be looked up.), or
figure out how to use CreateObject to do what you want.

"R Avery" wrote in message
...
The last line in the help file for the GetObject function is:

You can't use GetObject to obtain a reference to a class created with
Visual Basic.

Why not? I was hoping to have some COM object (created with VB6, or
maybe VB.NET) that I load into Excel that keeps track of certain
application level events, which I can then call the class of from any
VBA-enabled app using the GetObject function, and get data from it. Is
this not possible?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default GetObject function

So, suppose I create a VB6 single-instance COM object that runs as an
addin to Excel. Then how would I get a reference to the object from
Outlook so that I can check its properties?


Bob Kilmer wrote:
It is not possible using GetObject on a VB class. Use C++ to create your
object (I don't know the details, but I am sure they can be looked up.), or
figure out how to use CreateObject to do what you want.

"R Avery" wrote in message
...

The last line in the help file for the GetObject function is:

You can't use GetObject to obtain a reference to a class created with
Visual Basic.

Why not? I was hoping to have some COM object (created with VB6, or
maybe VB.NET) that I load into Excel that keeps track of certain
application level events, which I can then call the class of from any
VBA-enabled app using the GetObject function, and get data from it. Is
this not possible?





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default GetObject function

My reply to Henning Eiben, titled 'Excel Library', might help.

--

HTH

RP

"R Avery" wrote in message
...
So, suppose I create a VB6 single-instance COM object that runs as an
addin to Excel. Then how would I get a reference to the object from
Outlook so that I can check its properties?


Bob Kilmer wrote:
It is not possible using GetObject on a VB class. Use C++ to create your
object (I don't know the details, but I am sure they can be looked up.),

or
figure out how to use CreateObject to do what you want.

"R Avery" wrote in message
...

The last line in the help file for the GetObject function is:

You can't use GetObject to obtain a reference to a class created with
Visual Basic.

Why not? I was hoping to have some COM object (created with VB6, or
maybe VB.NET) that I load into Excel that keeps track of certain
application level events, which I can then call the class of from any
VBA-enabled app using the GetObject function, and get data from it. Is
this not possible?







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
(Disable macro's while) using the GetObject Max Potters Excel Programming 4 August 19th 04 06:43 PM
GetObject Michael Excel Programming 3 June 16th 04 01:28 PM
GetObject-question Tom Excel Programming 1 June 10th 04 05:17 PM
Is there a better option than Getobject to access a .xls? Dave F[_4_] Excel Programming 4 October 28th 03 02:24 PM
Excel Getobject error Jaya Excel Programming 4 July 17th 03 07:13 PM


All times are GMT +1. The time now is 12:12 AM.

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"