M
ma1achai
There is a question down there... sorry for the long setup:
I have created a VSTO Com Add-in that has creates it's own ribbon in Excel
and provides a way for the user to login to my code through a Ribbon button.
For simplicity sake, Lets say I keep the username in a static Class LoginInfo.
Additionally, I want to expose some functions as UDF's that the user can use
directly within a cell. I have done so by marking a 'MyFunctions' class
AutoDual and made it ComVisible. This results in correctly creating an
Automation Add-In.
Everything appeared to work at first... user could login through the Ribbon
and could also use simple UDF's (Add two numbers, return a hard-coded string,
etc.). However, the problem I am seeing is when I try to get a UDF to return
information that was collected by the Com Add-In portion (like the username
from LoginInfo), it does not see this as having been set yet.
What it appears is that the COM Add-In and the Automation Add-In are
actually separate instances that cannot share code... is this correct? And
is there some way to get this to work?
It seems like there is simply something easy that I need to set to get this
correct...
thanks for any help!
I have created a VSTO Com Add-in that has creates it's own ribbon in Excel
and provides a way for the user to login to my code through a Ribbon button.
For simplicity sake, Lets say I keep the username in a static Class LoginInfo.
Additionally, I want to expose some functions as UDF's that the user can use
directly within a cell. I have done so by marking a 'MyFunctions' class
AutoDual and made it ComVisible. This results in correctly creating an
Automation Add-In.
Everything appeared to work at first... user could login through the Ribbon
and could also use simple UDF's (Add two numbers, return a hard-coded string,
etc.). However, the problem I am seeing is when I try to get a UDF to return
information that was collected by the Com Add-In portion (like the username
from LoginInfo), it does not see this as having been set yet.
What it appears is that the COM Add-In and the Automation Add-In are
actually separate instances that cannot share code... is this correct? And
is there some way to get this to work?
It seems like there is simply something easy that I need to set to get this
correct...
thanks for any help!