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
Related
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 could not found Office 2007 project wizard in VS 2012 , only support for Office 2010. But , i want to create a 2007 Excel add-in so that use this addin on both 2007 office and 2010 office.
Please give me any help to solve this issue.
Thanks in advance.
The link that Doug Glancy addresses the following issue:
You have Visual Studio 2012 and Office 2007 installed on your development computer.
If you have Visual Studio 2012 and Office 2010 installed, and you want your Excel add-in to target Office 2007 as well then you don't have to do anything. An Excel 2010 add-in created with VS2012 will work with Excel 2007, Excel 2010, and Excel 2013.
Currently, I use the library for Excel 2010 but I need to install both 2003 and 2010 on my machine. How can I call Excel 2003 or 2010 in my code.
Edit: Maybe I didn't ask clearly. I want to use both applications in one project. So I want this to use Excel 2003 in some cases and in other 2010.
Excel.Application xlApp = new Excel.Application();
You can tell by the version number of the Interop library you use. 2003 is 12, 2010 is 15 (they skipped version 13) so after installing Office 2003 you can use the .Net tab in the Add References dialog box in Visual Studio to add the libraries for 12, test your code and then remove these and add the libraries for 15 and test your code again. The name of the library for 2003 is Microsoft Excel 12.0 Object Library, the name for 2010 is Microsoft Excel 15.0 Object Library.
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
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.