Hallo,
ich will einige Werte aus dem Programm Ausserhalb des Programms sichern.
Ideal wäre dafür ein 2D-Array (Excel).
Wie bekomme ich das Objekt „Excel“ im Programm bekannt?
In dem was ich aus meiner Fortbildung an Quellcode ausgedruck habe fehlt wohl ein wichtiger teil…
Hi,
unter Projekt->Verweise->
Microsoft Excel n.0 type library
auswählen
dann mittels (nur Beispiel … )
Set xlApp = New Excel.Application
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets.Add
excel füllen mit
xlSheet.Cells(n + 7, 5).Value = …
xlApp.Visible = True
Set xlApp = Nothing
Set xlBook = Nothing
Set xlSheet = Nothing
Excel füllen
Danke,
hatte die Bibliotheken nicht aktivier 