I have received a MS Excel addin project build in VS2010. How do I determine whether it is Excel 2007 addin or Excel 2010 addin project ?
Technically, the answer of Mitja is correct. In practice, this is not entirely accurate. As far as I know, this can only be checked by running add-in in Excel 2007 and 2010. Most likely, it will work in both cases. Checking of the version of Microsoft.Office.Interop.Excel assembly does not help, as Microsoft.Office.Interop.Excel 12.0 works fine in Excel 2007 and 2010 (and even 2013) and Microsoft.Office.Interop.Excel 14.0 - too. In most cases, the add-in itself will also work equally in all three versions of Excel (2007, 2010 & 2013)
The only significant difference - a version of Excel that runs when debugging - you can see in your .сsproj - file:
<ProjectExtensions>
<VisualStudio>
<FlavorProperties [...] OfficeVersion="12.0" [...] DebugInfoExeName="#Software\Microsoft\Office\12.0\Excel\InstallRoot\Path#excel.exe" />
</FlavorProperties>
[...]
</VisualStudio>
</ProjectExtensions>
You can check references that are added to the project. Not sure what kinda of Addin it is, but I'll assume it is using Interop assemblies. Then you can check the version on the Microsoft.Office.Interop.Excel assembly. If it is 12.0.0.0 it is targeting Excel 2007, version 14.0.0.0 would mean it is Excel 2010.
Related
I created a program in Visual Studio 2017 using VB.net, which takes form data and creates a Word document with an Excel graph. I am running Win 10 and Office 2016. I have successfully run the program on Windows 7 - 10 (32 or 64) on both Office 2013 and Office 2016. However, I need the program to run on a Win 10, Office 2010 machine. Any version of Windows with Office 2010 simply says the program/app has stopped running.
Per what I have found on this site and other sites, it appears that such a program can run on Office 2010 with a certain .NET version and Visual Studio 2010 Tools for Office Runtime installed. Here is the link:
https://msdn.microsoft.com/en-us/library/bb772080.aspx
I have tried installing these on multiple systems, but it seems to make no difference in the result. I used the Event Viewer to see what was going on, and it looked like there was some security setting preventing the program from operating with Word and Excel, but when I changed the security settings in those two programs per advice received elsewhere, I still got the same result.
My searching leads me to believe there is a solution, and a simple one at that, but it has eluded me. Thanks in advance for advice.
My code worked fine on computers with Office 2013 or 2016, but some changes made from 2010 to 2013 lead some of my code to be invalid when trying to operate on computers running Office 2010. The Word code was fine, but the Excel code had three issues. Here is what they were and how I fixed them:
Office 2010 and before do not allow Excel data label width modifications, so I compensated by increasing the overall width of the chart.
The method FullSeriesCollection for my Excel Series was not valid for Office 2010, so I used the method SeriesCollection instead.
I had to put my variable for the Excel chart range above my variable for the Excel chart. I'm not sure exactly why this was needed, because it worked fine in Office 2013 & 2016.
I just need to ask to what degree Macros developed in Excel 2003 are compatible with Excel 2010 and 2013?
I would tend to think that there would be some issues, but from your experience, what percentage of macros developed in Excel 2003 can work in Excel 2010/2013?
The issue you are going to have is with 32/64 bit compatibility. Office 2003 is 32-bit only; starting with Office 2007, some versions are 64-bit.
Microsoft has a pretty good writeup of the issues on this page.
You should do some online searches for VBA features that were "deprecated" after Excel 2003. The single major feature that no longer works is Application.FileSearch
Just from msdn.microsoft.com:
Excel 2010 Object Model Changes Since Earlier Versions
What's New in Excel 2010
New Objects, Collections, and Enumerations_Excel.Dev
New Members and Constants_Excel.Dev
Tables of VBA Object Model Changes
VBA Object Model Changes
Word 2010 Object Model Changes Since Earlier Versions
What's new for VBA developers in Project 2013
And so on ...
I'm very new with VSTO development. Is it possible to develop Ms Word Add-In that can be used in Word 2007 and Word 2010?
When I try debugging an add in for Word 2010 in a machine that have Word 2007, it is said that "the required version of the Microsoft Office Application is not installed". Same thing happen when I try debug add in for Word 2007 with a machine that have word 2010.
Thank you for your help.
It is certainly possible to create a vsto addin that runs on both office 2007 and 2010 but there are some restrictions on the what and how. Microsoft has created a rather comprehensive document about this topic: Running Solutions in Different Versions of Microsoft Office
Just a quick questions..
I have made an outlook add-in for 2007 version and when I tested it with version 2003 it did not seem to work.
Is there any special procedure I need to follow to enable to add-in in Outlook 2003 or it won't work at all? I hope I don't have to create a new one for 2003.
Thanks,
SL
Assuming that you are referring to an add-in created using VSTO.
When you create an add-in for Office 2007 the referenced Interop Assemblies will be the ones associated with Office 2007 and this is the main reason for your add-in not to work on Office 2003.
One alternative will be to reuse the custom add-in code but build it against Office 2003 Interop assemblies. This will work if you're not using any functionality inherent to Office 2007.
IIRC, a VSTO add-in developed for Office 2003 will possibly work on Office 2007 without change, but never the other way around.
I'm wondering if there's a way to manage VBA code authored in Excel 2007 using Visual SourceSafe? Office XP and 2000 apparently had 'developer additions' that supported this (e.g. http://msdn.microsoft.com/en-us/library/aa164419(office.10).aspx). Is this support missing in Office 2007?
The Office XP VSS addin worked fine in Excel 2007 last time I tried it (been a couple of years). It's really a VBA addin, and VBA hasn't changed much since Excel 2000 (eg, registered addins work across versions). You might need an MSDN subscription to download it, though- that's where I got it.