Immer noch kommt hin und wieder ein Fehler
04.12.2018 11:45:00
Stefan
Private Sub Worksheet_Activate()
Application.ScreenUpdating = False
'Ausblenden bzw Zeilenhöhe minimal einstellen von Zeilen, die nicht verwendet werden
Dim Zelle As Range
ActiveSheet.Unprotect Password:="mueller"
With Application
.Calculation = xlCalculationManual
For Each Zelle In Range("B15:B22,B24:B31,B33:B40,B42:B49,B51:B58,B60:B67").Cells
Zelle.EntireRow.RowHeight = 0.5 - 14.5 * (Zelle > 0)
Next Zelle
.Calculation = xlAutomatic
End With
ActiveSheet.Protect AllowInsertingHyperlinks:=True, userinterfaceonly:=True, AllowSorting:= _
False, DrawingObjects:=True, AllowFiltering:=False, Contents:=True, Password:="mueller"
ActiveSheet.EnableOutlining = True
Set Zelle = Nothing
Application.ScreenUpdating = True
End Sub
Anzeige