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!

using excel in VB.NET

Status
Not open for further replies.

stx

Programmer
Sep 24, 2002
62
BE
I'm using a windows xp pro system with visual studio.net 2003 and microsoft office xp.

This is my code

Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet

oXL = CreateObject("Excel.Application")
oXL.Visible = True

oWB = oXL.Workbooks.Add

The last line of code is where i get following run-time error:
Old format or invalid type library

I have added a com reference to microsoft excel 10.0 object library.

Anyone had the same problem?
Any help would be very appreciated.

thnx

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top