Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I am creating a Shared Addin Using VS 2005 for Excel. (File --> New Project --> Other Projects -- Extensibility --> Shared Addin.
I am having both Excel 2007 and Excel 2002(Office XP) installed in my system, the Addin works fine with both the excel version.

When I install the Addin setup in some other sytem the addin is not loading.
How to deploy the addin for all the Excel Versions?
Posted

Assure that all the versions of Excel you intend to allow are being referenced in the project.

Then attempt to load the addin starting with the reference to newest version of Excel, if that reference is not there (You'll know when it generates an error.) then move on down the list.

Regards.

Update:
From Microsoft. "Microsoft discourages using managed code in Office 2000 or in Office XP. Be careful when you try to introduce managed code into these Office versions. These Office versions were designed and tested before the .NET Framework was created." (http://support.microsoft.com/kb/948461[^])

So the short answer is, no. C# addins will not work in Excel 2000.

There are work-arounds and it seems there are number of forums that discuss this very problem but it seems to be a lot of effort to support the older versions.
 
Share this answer
 
v2
Comments
Member 4312989 25-May-11 10:08am    
Thanks for the Quick Reply
The target machine is having excel 2000 version will the C# Addin work with excel 2000?
you will need to add the installation folder in GAC CAS with full trust on deployment machine. The development machine by default set permission for your addin to run with Office applications but on deployment you have to explicitly it.

here is a useful link for troubleshooting addins:
http://blogs.msdn.com/b/vsod/archive/2008/04/22/troubleshooting-com-add-in-load-failures.aspx[^]

Thanks,
Hemant

My bad my fingers have their own mind i wanted to type CAS but added GAC instead.
here is an additional link that talks about Outlook addin deployment but same way you can do it for excel addin
http://msdn.microsoft.com/en-us/library/cc136646.aspx[^]

Thanks,
Hemant
 
Share this answer
 
v2
Comments
Member 4312989 25-May-11 10:09am    
Thanks for the quick reply
The target machine is having excel 2000 does C# Addin work with excel 2000?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900