Excel speichern, wie?
-
Hallo!
Ich habe schon alle Boards nachgeschaut. Und finde ich kein Antwort.
Oder suche ich irgentwie falsch.
C++Builder6://--Excel offnen: Variant Excel; Excel = Variant::CreateObject("Excel.Application"); Excel.OlePropertyGet("ActiveWorkBook"); Excel.OlePropertyGet("WorkBooks").OleFunction("Open",StringToOleStr(datei)); //--Tabelle offnen: Variant Sheet; Sheet=Excel.OlePropertyGet("Sheets","Tabelle1"); //--irgentwas eintragen(z.B. Datum) Sheet.OlePropertyGet("Cells",5,9).OlePropertySet("Value",StringToOleStr(Datum)); //--Excel speichern: Excel.OlePropertyGet("Save"); <---*** //--Exel schlesen: Excel.OleFunction("Quit"); Excel = Unassigned;Bei <---*** kommt immer Meldunf, ob ich wirklich schpeichern muss, oder Abrechen........
Wie kann ich das ausschalten?mfg
-
Excel.OlePropertyGet("ActiveWorkBook").OlePropertyGet("Save");
-
Hi!
Dazu noch 'ne Frage: Wie speichert man die Datei dann unter einem anderen Namen? Danke im voraus!
Sebo