Solved

VS 2012 Office Interop Problem

Posted on 2014-01-28
3
410 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
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 62

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Formula 6 45
Formula or Macro to determine variance 17 75
Highlighting cells in Excel 9 16
Variable Event ? 3 19
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

932 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

15 Experts available now in Live!

Get 1:1 Help Now