projectile
Board Regular
- Joined
- Dec 14, 2007
- Messages
- 193
I have a worksheet "Latest Rates" which uses autofilter and so I have setup a macro to reset filtering when the exel sheet is opened and works fine; however if the sheet is opened and reset is not applicable i.e. no filter criteria saved from last time it was used, the macro crashes. below is the code I entered
Private Sub Workbook_Open()
Sheets("Latest Rates").Select
With ThisWorkbook.Worksheets("Latest Rates")
If .AutoFilterMode Then
.ShowAllData
End If
End With
End Sub
please advise
Private Sub Workbook_Open()
Sheets("Latest Rates").Select
With ThisWorkbook.Worksheets("Latest Rates")
If .AutoFilterMode Then
.ShowAllData
End If
End With
End Sub
please advise