Autor Beitrag
dm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Mo 21.10.02 13:10 
Hallo,

ich konvertiere über Delphi Daten aus meinem DBGrid in ein Excel Formular.
Ich möchte die Abfrage beim Schliessen von Excel, ob das Dokument gespeichert werden soll abfangen und automatisch mit JA bestätigen.

Weiss jemand wie der Befehl dazu lautet ???

Ich verwende Excelapplication, Excelworkbook und Excelworksheet


Gruß DM
Cashels
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167



BeitragVerfasst: Mo 21.10.02 18:25 
Hallo,

ich benutze zwar nicht ExcelWorkbook sondern erzeuge mein OLE Object direkt mit Excel := CreateOleObject ('Excel.Application') und öffne mein Workbook mit Excel.Workbooks.open (Filename := 'test.xls') ;

Aber bei mir funktionniert das Schliessen mit Speicherm mit Workbook[0].close (SaveChanges := true) ;

Gruss,
Tom
dm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Di 22.10.02 08:46 
Titel: hat geklappt
Danke Tom
Cashels
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167



BeitragVerfasst: Di 22.10.02 09:18 
Schitteböhn... Wenns geholfen hat :!: