Hallo,
ich möcht aus einem VB 2005 Programm heraus ein Diagramm mit dem Namen "Diagramm1" in einer Exceldatei öffnen.
So geht es leider nicht:
[highlight=vb.net]
Dim exAPP As Excel.Application
Dim exWB As Excel.Workbook
Dim exWS As Excel.Worksheet
'-----> Excel datei öffnen
exAPP = New Excel.Application
exAPP.Visible = True
'-----> Mappe öffnen
exWB = exAPP.Workbooks.Open(TextBox1.Text & "makrotest.xls")
exWS = exWB.Worksheets("Diagramm1")[/highlight]
Wie mach ich's denn richtig?
vG
freyx
ich möcht aus einem VB 2005 Programm heraus ein Diagramm mit dem Namen "Diagramm1" in einer Exceldatei öffnen.
So geht es leider nicht:
[highlight=vb.net]
Dim exAPP As Excel.Application
Dim exWB As Excel.Workbook
Dim exWS As Excel.Worksheet
'-----> Excel datei öffnen
exAPP = New Excel.Application
exAPP.Visible = True
'-----> Mappe öffnen
exWB = exAPP.Workbooks.Open(TextBox1.Text & "makrotest.xls")
exWS = exWB.Worksheets("Diagramm1")[/highlight]
Wie mach ich's denn richtig?
vG
freyx
Comment