Makro erweiterung
Jochen
Public Function Monate()
Const Monat_Max = 48
jahr = Cells(1, 83)
Debug.Print monat
Debug.Print jahr
For j = 9 To 38
monat = Cells(1, 82)
If Cells(1, 84) = "hinten" Then
monat = monat + 12
End If
summe = 0
summeESS = 0
For i = 1 To 6
summe = summe + Cells(j, (monat + (monat - 1) + 4) + monat - 1)
summeESS = summeESS + Cells(j, (monat + (monat - 1) + 6) + monat - 1)
monat = monat + 1
Next
Monate = summe
Debug.Print summe
Debug.Print summeESS
Cells(j, 3) = Monate
Cells(j, 4) = summeESS
Next
End Function
Nun mein Problem: Es wird immer der ganze Bereich neu berechnet. Besteht die Möglichkeit das nur die Zeile in der ich einen Wert ändere berechnet wird.Danke im Voraus.
Gruß
Jochen