Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Office Upgrade causing build problems on VB project

Status
Not open for further replies.

tmar

MIS
Mar 24, 2007
62
US
We recently upgraded from Office 2003 to Office 2010. Once this was installed on my development machine I get errors on my build due to the program no longer recognizing the Excel namespace. There are errors throughout the program but they are on statements like the ones below where I'm referring to the Excel namespace.

Dim excel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim wBook As Microsoft.Office.Interop.Excel.Workbook
Dim wSheet As Microsoft.Office.Interop.Excel.Worksheet

I've tried removing and re-establishing the reference to Excel. I've reinstalled the office 2003 interop. I've even reinstalled VB on the machine but none of these steps worked.

Any ideas?
 

What are the errors?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top