Autor Beitrag
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Do 30.12.04 11:35 
Hi Leute,
man kann ja mit OleAutomation Excel Tabellen erstellen und verwalten. Wie kann ich es schaffen, dass ich per OleAutomation an eine bestimmte Stelle in dieser Tabelle einen Wert erscheinen lasse, der den Durchschnitt einer anderen Reihe beinhaltet?! In Excel geht das, wenn man auf das Formel-Symbol klickt und dann Mittelwert auswählt! Ich wäre sehr dankbar für Antworten, im Voraus danke, Scorpion!


Moderiert von user profile iconTino: Topic aus VCL (Visual Component Library) verschoben am Do 30.12.2004 um 11:37

_________________
Aus dem Urlaub zurück!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 30.12.04 11:36 
Hallo!

Schau mal auf die folgende Seite. Vielleicht hilft sie dir: www.djpate.freeserve.co.uk/AutoExcl.htm

Gruß
Tino
ScorpionKing Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Do 30.12.04 11:43 
Erst mal danke für die schnelle antwort!
ich mache das leider folgendermaßen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
var excel: variant;
begin
excel := CreateOleObject('Excel.Application');
...


kennt dazu jemand einen weg?

_________________
Aus dem Urlaub zurück!
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Do 30.12.04 12:06 
guck mal hier:
www.delphi-forum.de/...ammierung_34205.html

da steht's drin, wie das für word geht, bei excel ist es gleich.

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
ScorpionKing Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Do 30.12.04 19:14 
es ist eben nicht das gleiche! :(
aber ich habs rausgefunden :lol: :

wenn man zellen-index =RAND(5) bzw. die Formel eingibt, machst das automatisch!

_________________
Aus dem Urlaub zurück!
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 30.12.04 23:57 
Kannsts du mal bitte etwas Sourcecode posten. Würde mich interessieren. Danke!
ScorpionKing Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Fr 31.12.04 13:20 
ausblenden Delphi-Quelltext
1:
WS.Cells.Item[x,y].Formula := '=RAND()';					


Have Fun, Scorpion 8)

PS: WS ist ein _Worksheet-Objekt!

_________________
Aus dem Urlaub zurück!