Link to home
Start Free TrialLog in
Avatar of TeDeSm
TeDeSm

asked on

VS 2012 Office Interop Problem

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.
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TeDeSm
TeDeSm

ASKER

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.
Not a problem, glad I was able to help.