RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 801
- Office Version
- 365
- Platform
- Windows
Story of my life.
When I run this code, I get this error:
ControlPanel definitely exists and SignOffFilter definitely exists.
Any ideas what's going on?
When I run this code, I get this error:
Code:
Sub filterrun()
Call ControlPanel.SignOffFilter_Click
End Sub
ControlPanel definitely exists and SignOffFilter definitely exists.
Any ideas what's going on?
Code:
Private Sub SignOffFilter_Click()
Dim lastrow As Long
Worksheets("Bullets").Activate
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Cells.EntireColumn.Hidden = False
Cells.EntireRow.Hidden = False
On Error Resume Next
ActiveSheet.ShowAllData
On Error GoTo 0
If ActiveSheet.AutoFilterMode = False Then
ActiveSheet.AutoFilterMode = True
End If