in VBA von 1 bis 5 zählen
11.08.2007 18:09:00
1
ich versuche gerade die einfach Excel-Formel
(aktuelle Zelle ist W31)
=wenn(und(istzahl(W30);W30 in VBA umzuschreiben, damit ganz einfach beim Signal aus Spalte A
in Spalte W von 1 nach 5 gezählt wird.
So funktioniert es nicht:
Private Sub Worksheet_Change(ByVal Target As Range)
letzte = Range("AD22").Value
If Target.Column = 2 Then
If Cells(letzte + 1, 6).Value = 1 _
And Application.WorksheetFunction.Min(Range("V2:V500")) = 1 _
And Application.WorksheetFunction.Max(Range("V2:V500"))
Weiß jemand was ich falsch mache?
Danke,
Born