Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
Running office 365
Error occurs on this line:
Thank you
VBA Code:
Sub Filter()
ActiveSheet.Activate
ActiveSheet.Unprotect
If ActiveSheet.Name <> Worksheets("WO Report Summary 4.0") Then
Rows("1:1").Select
Selection.AutoFilter
cells.Select
cells.EntireColumn.AutoFit
Else
Rows("1:1").Select
Selection.AutoFilter
cells.Select
cells.EntireColumn.AutoFit
Range("L5:M5").ColumnWidth = 10.14
End If
Worksheets("WO Report Summary 4.0").Protect
End Sub
Error occurs on this line:
VBA Code:
If ActiveSheet.Name <> Worksheets("WO Report Summary 4.0") Then
Thank you