Groups | Blog | Home
all groups > dotnet interop > january 2007 >

dotnet interop : Automation add-in stopped working, please help.


aaronfude NO[at]SPAM gmail.com
1/12/2007 5:35:22 AM
Hi,

I have written an automation add-in some time ago that merely adds a
few functions to Excel. It has always worked, but now it has stopped!
When used in a cell, I get "#NAME?". When called via VBA it says "The
macro 'sqr' cannot be found".

I have tried everything I could think of... Recompile, reinstall,
remove then reinstall, reinstall the .NET Framework (it's 2.0), etc but
nothing changes. It still shows up in the automation list and gets
added to the list of Add-ins without a problem. It's just that the
functions are no longer available in Excel. My next step is going to be
to reinstall the entire system. Can someone please help me save myself
from it?

Many thanks in advance!

Aaron Fude
RobinS
1/12/2007 9:43:34 AM
Does the code exist in Excel, is that what you mean? So you have a
function you have added to EXcel, but now you can no longer use it?
Is the function still in the code-behind? Can you call it using the
Immediate window? Is the function declared a public?

What version are you using of Excel?

Robin S.
-------------------------
[quoted text, click to view]

aaronfude NO[at]SPAM gmail.com
1/12/2007 1:01:48 PM

[quoted text, click to view]

The function is written in C#. The library shows up under Automation
and in the Add-ins list.

[quoted text, click to view]

Yes.


[quoted text, click to view]

Unfortunately, I don't know what the code-behind is.
[quoted text, click to view]

Don't know what the "Immediate window" is, but I will look that up now.


[quoted text, click to view]

Yes, in C#. Like I said, it's always worked and has now inexplicably
stopped. So it can't be anything wrong with the function b/c thecode
itself has not been changed in some time.

[quoted text, click to view]

2003

Thanks for trying to help me!!!

[quoted text, click to view]
aaronfude NO[at]SPAM gmail.com
1/12/2007 1:02:00 PM

[quoted text, click to view]

The function is written in C#. The library shows up under Automation
and in the Add-ins list.

[quoted text, click to view]

Yes.


[quoted text, click to view]

Unfortunately, I don't know what the code-behind is.
[quoted text, click to view]

Don't know what the "Immediate window" is, but I will look that up now.


[quoted text, click to view]

Yes, in C#. Like I said, it's always worked and has now inexplicably
stopped. So it can't be anything wrong with the function b/c thecode
itself has not been changed in some time.

[quoted text, click to view]

2003

Thanks for trying to help me!!!

[quoted text, click to view]
RobinS
1/12/2007 10:54:18 PM
I don't know how to fix this because I haven't written add-ins
to Excel. I know how to write VBA code within Excel, and I know
how to use OLE Automation to automate Excel from VB and VB.Net,
but that doesn't seem to apply here.

I recommend that you post this to microsoft.public.excel.programming.
Someone there can probably help you a lot quicker than I can.

Good luck.

Robin S.
-----------------------------------------
[quoted text, click to view]

Cindy M.
1/16/2007 4:38:36 PM
Aaron:

[quoted text, click to view]
The correct place to get help for managed Add-ins is the
office.developer.add_ins newsgroup.

When you post there, be sure to mention the software versions (both dev
as well as Office). Also mention where the sqr function is located (is
it in your Add-in)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
AddThis Social Bookmark Button