Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tabellenblatt Formeln mit VBA nutzen

0 views
Skip to first unread message

Hauke Krause

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to
Liebe NG,

kann man mit VBA direkt Daten (Zahlen) an eine Formel in einem Tabellenblatt
übergeben, speziell zum Beispiel Werte aus einem Array an die Formel
=Mittelwert ?

Vielen Dank

Hauke Krause

Marcus Schmitt

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to
Mit dem Beispiel des Mittelwertes könnte man es so machen:

Sub Mittelwert()
Dim Wert(1 To 5)
For x = 1 To 5
Formel = Formel & x
If x < 5 Then Formel = Formel & ","
Next x
Formel = "=AVERAGE(" & Formel & ")"
Range("A1").FormulaR1C1 = Formel
End Sub


Gruß
Marcus
http://www.marcus.schmitt.notrix.de


"Hauke Krause" <hauke....@t-online.de> schrieb im Newsbeitrag
news:8630uc$uhb$1...@news02.btx.dtag.de...

0 new messages