Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

Although have come to have an idea to be using the PIAs to release the limitations of versions dependencies in case of Office Developments in VSTO unfortunately when I downloaded the requisite PIAs for the versions 2003, 2007 and 2010 upon running any of the same the result is a msgbox:

"Please install Microsoft Office 20xx before installing this product."

Furthermore, haven't found any clear walkthrough tutorial to be aware of the way to use the same. In other words how to make a simple Excel Add-In for my colleagues having a variety of Office versions (2003-2013) while I have Office 2013 and Visual Studio 2013 installed on my machine?

Shall highly oblige any of you experts to reveal the most beneficial manner of doing so by either providing a way to work in this regard or recommending any valid source of info on net for the same.

Thanx in advance.
Posted

1 solution

I'm afraid, you can't ;(

As far as i know, VS 2010-2013 does not supports programmers to write COM addin for MS Excel 2003. It supports creation of MS Excel addin for version 2007 and higher. See: VS2010 vs Excel 2003 add-in[^] for more details.

There are several reasons:

  1. MS Excel 2007 and higher uses OpenXML[^] standard.
  2. MS Excel 2007 and higher provides the part of backward compatibility,
  3. the list of other differences you'll find here: MS Excel 2003 vs. 2007[^], for example:

    • different count of rows in sheet
    • different count of columns in sheet
    • MS Excel 2003 uses CommandBars, MS Excel 2007 and higher uses Ribbons
    • etc.



For further information, please see:
General Reference (Office Development in Visual Studio)[^]
How to: Install Office Primary Interop Assemblies[^]
Office Primary Interop Assemblies[^]
Walkthrough: Creating Your First Application-Level Add-in for Excel[^]
Excel Application-Level Add-in Development[^]


Alternatively, you can write VBA Addin[^], Creating an Excel Add-in[^]

Conclusion: You need to write 2 addins: one for MS Excel 2003 and one for MS Excel 2007 and higher (at least).
 
Share this answer
 
Comments
Faraz.Online 9-Dec-13 14:45pm    
:(
Thanx anyway buddy!
Sure found your splendid advice & references to be a matchless treasure! However, considering your conclusion regarding Two addIns I found that the VS2013 does not even offer any template for Office 2007 and an attempt to install the 2007 PIAs also requires the Office 2007's installation.
Furthermore, no Extensibility option available as well in the VS 2013 although was there in VS 2010.
Any suggestions for the same?
Thanx again!
Faraz.Online 9-Dec-13 14:51pm    
By the way I am really sorry and feel stupid to be placing a question in the Solutions space first. Actually never had a need for replying to any former questions. Inconvenience of any sort are regretted.
However, have found out NetOffice at http://netoffice.codeplex.com/. What would be your suggestion in this regard if any experience with the same?
Thanx again
Maciej Los 9-Dec-13 15:47pm    
Sorry, i have no experience with netofice.

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