Solved

VS 2012 Office Interop Problem

Posted on 2014-01-28
3
424 Views
Last Modified: 2014-01-28
I have upgraded from VS2010 to VS2012. To do this I had to uninstall VS2010.

On loading existing projects that had Imports Word = Microsoft.Office.Interop.Word I find now that all references to Word such as Dim oWord As Word.Application show as errors.

Microsoft.Office.Interop.Word in the references shows with a question mark. I am guessing that my projects with Excel will also be the same.

How do I correct this please.
0
Comment
Question by:TeDeSm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39815006
You will need to remove those references from the project and then re-add them back in.

To your question, "I am guessing that my projects with Excel will also be the same.", Yes, do the above to correct.
0
 

Author Closing Comment

by:TeDeSm
ID: 39815028
Thanks for the info.

This is what I did:
Ensured the Office PIA's were installed.
Removed the Reference to Microsoft.Office.Core
Added the reference to the Microsoft Word 14.0 Object Library
This referenced the Microsoft.Office.Core and Microsoft.Office.Interop.Word

Errors now zero thank you.
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 39815033
Not a problem, glad I was able to help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question