I have developed an Excel Add-in in Visual Studio 2008 for MS Office 2007. My client now wants this Add-in to work on office 2010 also. So, I used Visual Studio 2010 to achieve this requirement. Visual Studio 2010 automatically converted Visual Studio 2008 code to Visual Studio 2010. But the framework 3.5 remained same for this converted project, so I cannot compile this converted code in .Net framework 4.0 (It gives error). Hence, I left the code as is in the 3.5 framework and I created installer for office 2010 in visual studio 2010 & installed. Installation was successful but Add-in was unable to load because load behavior always gets changed from 3 to 2(error: a runtime error occurred while loading of COM-Add-in). So after searching on web I added an entry in the registry through the installer. It is working fine on office 2010, but it is not working on office 2007. I have to keep two different codebases & two different installers for office 2007 & office 2010 although code is exactly the same. I want single code base & single installer for my Excel Add-in that should work on office 2007 as well as office 2010. Can anyone help me in this? I would be really grateful if anyone could give me a solution at the earliest.
Related
Everything was working fine. I have windows8.1, VS 2010, VS 2013 installed on the same machine.Ms office 2013 was installed without infopath and InfoPath 2010 was installed already with MS Sharepoint 2010 and it was working fine with code behind. Suddenly mistakingly someone updated to MS Office 2016 and now I have tried installing Ms Infopath 2010 again it installs properly but when i click on code on MS Infopath 2010. it gives error "InfoPath cannot start Microsoft Visual Studio Tools for Applications. InfoPath has encountered the Error. The operation failed.". I have installed msxml6.msi. I have checked everything installed VSTA too. tried every solution but my code behind is not opening VSTA. I installed msxml6.msi too. but one thing I noticed if I run VSTA from my command it opens up but its not opening with infopath. I have lost hope. What could be the reason. Please help. I ll be grateful.
After several failed attempts, I installed visual studio tools for office system 3.0 and luckily it worked. :)
Hi I recently used a macros which uses Microsoft visual basic for applications extensibility 5.3. I'm using excel 2013 while my boss who uses this macros has 2007. I've run this my computer and other computers which has 2013 excel and they run properly. Butmy boss says he can't find 'extensibility 5.3' on his version of excel. So does it have to installed separately?
I have Visual Studio 2008, and will need to an Excel Workbook Project. The options for Excel 2007 and 2003 Workbook are there. But everytime I chose any of those it prompts me with an error saying "A compatible version of Microsoft Office is not installed on this computer. ...". So I checked my office version and sure enough it wasn't 2007 nor 2003, but 2010.
But I don't see any options Excel 2010 Workbook on my Visual Studio, already tried toggling the frameworks .NET 3.5/3.0/2.5 and it's none. I'm thinking maybe it is on .NET 4.0 so I tried downloading the 4.0 installer on microsoft site, but after the installation, there's still no .NET 4.0 in my VS2008, let alone Excel 2010 Workbook.
Any advice will be appreciated. Thanks!
I've done a lot of work in Excel from VB.net and never found a need for the Excel Workbook Project. You can do what you need to do by adding a reference to Excel and programming against it.
Check out: Automating Excel
i want to create an excel AddIn .it is simple :
File>New Project > Visual Basic > Office > Version 2010>OK
but an error says "Object reference not set to an inctance of an object"!
my VS version is 2010 ultimate
with Office 2010
in addition , i downloaded these two files and inistalled them hope they help me but it makes no change for me
http://www.microsoft.com/download/en/confirmation.aspx?id=3508
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=20479
what is wrong and what is the solution?
thanks in advance
If you have done default VS 2010 installation after Office installation it should work. I would recommend you to repair or reinstall with Office developer tools checked.
Check Microsoft Office section here
On my development system, I am running Office 2007, and previously had Office 2003 installed, and thus have the Microsoft Office 11.0 and 12.0 Object Models available. Our production environment is in the process of being upgraded to Office 2007, but it hasn't happened yet - still running Office XP in production, and I need to be able to debug an (inherited) VB.Net (VS 2005) app that uses Office Interop against Office XP (10.0) (Excel).
Can I simply download, install, and reference the Office XP PIA's (http://www.microsoft.com/downloads/details.aspx?familyid=C41BD61E-3060-4F71-A6B4-01FEBA508E52) in order to compile an run the app? A previous build has been tested against Office 2007 and it seemed to work with the "old" interop/PIAs.
I have the "old" Interop.Excel, etc., the only reference that is giving me a problem is the Microsoft Office 10.0 Object Model (which says Microsoft Office 12.0 Object Model but has an Exclamation mark in my IDE).
I also found http://www.codeproject.com/KB/office/Compile2003VstoVista2007.aspx (for Office 2003 on a system with 2007) which suggests installing the older version of Office and then massaging the project files in a text editor. While I don't mind using a text editor on the project files, I'd prefer not to install Office XP unless I have to (I have access to it if I do). And I'd prefer to be able to load the project as is (with the "old" reference).