Solved

VS 2012 Office Interop Problem

Posted on 2014-01-28
3
408 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
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
Comment Utility
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
Comment Utility
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 62

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now