I want to make sure a worksheet is unfiltered before proceeding with the rest of the routine. I can make sure that there is data to unfilter with verifying the last row is = to > than 5, but if the data is already unfiltered, what is the correct syntax to code this. I try to avoid using the "On Error Resume Next" command.
Thanks.
Mike
Thanks.
Mike
Code:
With Worksheets("ActualData")
aRow = Range("A" & Rows.Count).End(xlUp)
If aRow >= 5 And .ShowAllData = False Then
.ShowAllData
End If
End With
[code]