[VB2005] leeres Excel Sheet

Paperman-Zero

Grünschnabel
Hallo,

Hab folgendes Problem.
Ich will, dass mir ein Programm per Knopfdruck ein leeres Excelsheet öffnet.
Sprich per click auf Button 1 soll sich Excel starten und man soll ein leeres Excel Tabellen Blatt vor sich haben.

Code:
Dim xlApp As Excel.Application
		Dim xlMappe As  Excel.Workbook
		Dim xlBlatt As Excel.Worksheet
		Dim xlZelle As Excel.Range
   		xlApp = New Excel.Application()
		xlApp.Visible = True
FEHLER		xlMappe = xlApp.Workbooks.Add
   		xlBlatt = xlMappe.Worksheet.Add
   		xlZelle = xlBlatt.Range("A1")

Hab es mit diesem Code probiert.
Aber in Zeile 7 bekomme ich folgenden Text:
Can not evaluate because native frame is on top of stack

Kann mir jemand helfen? Bin am verzweifeln.

Can not evaluate because native frame is on top of stack
 

Neue Beiträge

Zurück