Alex O
Active Member
- Joined
- Mar 16, 2009
- Messages
- 345
- Office Version
- 365
- Platform
- Windows
Any ideas why autocalc will not switch to auto? Thanks
Code:
Sub HideRows()With Application
ScreenUpdating = False
Calculation = xlCalculationManual
DisplayAlerts = False
EnableEvents = False
End With
BeginRow = 2
EndRow = 1050
ChkCol = 20
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = 1 Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
Else
Cells(RowCnt, ChkCol).EntireRow.Hidden = False
With Application
ScreenUpdating = False
Calculation = xlCalculationManual
DisplayAlerts = False
EnableEvents = False
End With
End If
Next RowCnt
End Sub
Last edited: