Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel not seeing 2nd COM Interface

I have an ATL/COM project that I'm developing which have a number of functions that can be accessed in Excel as worksheets functions. All these functions so far belong to one object with the associated Interface. This all works great.
But when I added a second object and used the Tools-Add-ins-Automation to add it, its interface did not show up in the function categories and its functions are not accessible. The first object is visible and accessable though. Is there something I'm missing? or can excel only use 1 interface? ... Any help would be appreciated.

Thanks ...
  #2   Report Post  
Posted to microsoft.public.excel.programming
um um is offline
external usenet poster
 
Posts: 12
Default Excel not seeing 2nd COM Interface

Hi Gary,

I am also in fight with the COM interface. I also can't get a second one
visible. And I have a question for you. Are you able to make any
modifications to the sheet from inside your COM to the sheet that you are
calling the COM-based functions from?

As an example a SetValue on a Range always seems to fail. I can make
formatting changes from the COM, but SetValue gives me an exception with
error code 0x800a03ec. I have turned the code upside down in many hours of
testing, and it seems that the "calling sheet" is locked or something for
updating cell content. Do you have any idea why I am having that problem?
The underlying task is for the COM to fill in a range with values,
calculated in the COM and to go into a range specified in the function call.

Thanks!

Uwe


"Gary C" wrote in message
...
I have an ATL/COM project that I'm developing which have a number of
functions that can be accessed in Excel as worksheets functions. All these
functions so far belong to one object with the associated Interface. This
all works great.
But when I added a second object and used the Tools-Add-ins-Automation
to add it, its interface did not show up in the function categories and
its functions are not accessible. The first object is visible and
accessable though. Is there something I'm missing? or can excel only use 1
interface? ... Any help would be appreciated.

Thanks ...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Excel not seeing 2nd COM Interface

Hi Uwe,

As an example a SetValue on a Range always seems to fail. I can make
formatting changes from the COM, but SetValue gives me an exception with
error code 0x800a03ec. I have turned the code upside down in many hours of
testing, and it seems that the "calling sheet" is locked or something for
updating cell content. Do you have any idea why I am having that problem?
The underlying task is for the COM to fill in a range with values,
calculated in the COM and to go into a range specified in the function call.


It's a long-standing given that functions called from the worksheet can only
return values, they can't change the contents of other cells.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie


  #4   Report Post  
Posted to microsoft.public.excel.programming
um um is offline
external usenet poster
 
Posts: 12
Default Excel not seeing 2nd COM Interface

Forgive me Stephen, I never had to deal with these matters, ie Office
programming. Until today I have managed to get anything going through
programming, there has got to be a way. I think I might be able to copy the
content of the active sheet into a new sheet and do my voodoo there, but
it's just not clean to the end-user. So I am not quite giving up on this. Is
the deep reason for not being able to update the sheet, from which you are
calling the XLL, that it is somehow "write-protected" and I should start
fishing in that neighborhood?

Thanks a mille!

Uwe


"Stephen Bullen" wrote in message
...
Hi Uwe,

As an example a SetValue on a Range always seems to fail. I can make
formatting changes from the COM, but SetValue gives me an exception with
error code 0x800a03ec. I have turned the code upside down in many hours
of
testing, and it seems that the "calling sheet" is locked or something for
updating cell content. Do you have any idea why I am having that problem?
The underlying task is for the COM to fill in a range with values,
calculated in the COM and to go into a range specified in the function
call.


It's a long-standing given that functions called from the worksheet can
only
return values, they can't change the contents of other cells.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Excel not seeing 2nd COM Interface

Hi Um,

So I am not quite giving up on this.


Good luck!

Is
the deep reason for not being able to update the sheet, from which you are
calling the XLL, that it is somehow "write-protected" and I should start
fishing in that neighborhood?


No, it's because Excel is protecting is recalc tree.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie




  #6   Report Post  
Posted to microsoft.public.excel.programming
um um is offline
external usenet poster
 
Posts: 12
Default Excel not seeing 2nd COM Interface

Thanks Stephen,

that helps me understand the underlying problem!

Uwe

"Stephen Bullen" wrote in message
...
Hi Um,

So I am not quite giving up on this.


Good luck!

Is
the deep reason for not being able to update the sheet, from which you

are
calling the XLL, that it is somehow "write-protected" and I should start
fishing in that neighborhood?


No, it's because Excel is protecting is recalc tree.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie




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
Excel Interface ISAF Media Analysis[_2_] Excel Discussion (Misc queries) 2 May 5th 09 11:51 AM
New Excel 2007 interface arb1978 Excel Discussion (Misc queries) 1 November 23rd 07 09:57 PM
Excel & Database Interface vvraj Excel Discussion (Misc queries) 0 April 27th 06 08:50 AM
How do I disable the MDI interface in Excel? Jason Excel Discussion (Misc queries) 0 October 19th 05 08:44 PM
Excel Access interface Rosson Cain[_2_] Excel Programming 5 March 4th 04 07:49 PM


All times are GMT +1. The time now is 12:07 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"