Forumbeitrag
Excel-Version des Fragestellers:
365 Business
Erfahrungslevel des Fragestellers:
Excel gut - VBA nein
Hallo Oliver,
folgender Code kommt in das schon vorhandene VBA-Modul des entsprechenden Tabellenblattes:
Private Sub Worksheet_Calculate()
Dim lngCalculation As Long
Dim rngLZBlock As Range
With Range(Cells(14, 1), Cells(Rows.Count, 1).End(xlUp))
If Application.CountBlank(.Cells) Then
On Error Resume Next
lngCalculation = Application.Calculation
Application.Calculation = xlCalculationManual
For Each rngLZBlock In .SpecialCells(xlCellTypeBlanks).Areas
With rngLZBlock
.Cells(1).Offset(-1, 1).Value = .Rows.Count
End With
Next rngLZBlock
Application.Calculation = lngCalculation
On Error GoTo 0
End If
End With
End Sub
Gruß, Uwe