Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
(Disable macro's while) using the GetObject | Excel Programming | |||
GetObject | Excel Programming | |||
GetObject-question | Excel Programming | |||
Is there a better option than Getobject to access a .xls? | Excel Programming | |||
Excel Getobject error | Excel Programming |