I am developing an add-in for Microsoft Excel, using Visual Studio .NET 2008.
The add-in creates a single toolbar button, which can be clicked to launch a form, which can be used to add values from a database into the cells of the active spreadsheet.
1) A requirement is that the tool be available in both Excel 2003 and in 2007.
2) Another requirement is that, in Excel 2007, the launch button be on its own ribbon tab.
Because of the ribbon tab requirement, I have created two separate Excel add-in projects within Visual Studio - one for each version of office.
However, because the two add-ins must reference two different Office.Interop assemblies, and the project providing the database query form can only reference one, I find myself unable to share this third assembly between the two add-in projects.
Does anybody have a simpler solution than maintaining a separate copy of the form code for each of the two add-in versions?
Thanks.