Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I'm trying to access Excel-cells. Therefor I added a reference to the installed Excel 8.0 Object Library.

 

Here is my .NET-code:

 

Dim xlApp As Excel.Application

Dim xlMappe As Excel.Workbook

Dim xlZelle As Excel.Range

 

xlApp = New Excel.Application()

xlMappe = xlApp.Workbooks.Open("C:\Kk.xls")

xlZelle = xlMappe.Worksheets(1).Range("A1")

xlZelle.Value = "content"

...

 

When it runs, the following error-message occurs:

'Old format or invalid type library'

 

Does someone know, what's going wrong ??

  • 4 weeks later...
  • 3 weeks later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...