Hallo zusammen
Ich habe folgenden Code :
Sub excellesen()
Dim appexcel As Excel.Application
Dim appBook As Excel.Workbook
Dim wert
appExcel = CreateObject(
"Excel.Application")
appBook = appexcel.Workbooks.Open("C:\xy.xls")
appexcel.Worksheets("sheet1").Select()
wert = appexcel.Range("A1").Value
EndSub
Zusätzlich hab ich über Verweishinzufügen das Microsoft Excel 11.0 Object library aus COM hinzugefügt, welches auch erscheind im Projektexplorer, aber trotzdem hab ich den Fehler in der Dim Zeile habs unterstrichen. Was mache ich falsch?
Danke und Gruss
Loriculus
Ich habe folgenden Code :
Sub excellesen()
Dim appexcel As Excel.Application
Dim appBook As Excel.Workbook
Dim wert
appExcel = CreateObject(
"Excel.Application")
appBook = appexcel.Workbooks.Open("C:\xy.xls")
appexcel.Worksheets("sheet1").Select()
wert = appexcel.Range("A1").Value
EndSub
Zusätzlich hab ich über Verweishinzufügen das Microsoft Excel 11.0 Object library aus COM hinzugefügt, welches auch erscheind im Projektexplorer, aber trotzdem hab ich den Fehler in der Dim Zeile habs unterstrichen. Was mache ich falsch?
Danke und Gruss
Loriculus