B
B Baggins
I have some quite complex filters and am trying to make the spreadsheet more
user friendly.
I have included a button to restore the Show All Data using the VBA:
ActiveSheet.ShowAllData
This works, but only if there has been a filter applied. If the user clicks
the button again (without a filter being present) I get the following error
message - "Run Time error 1004 - ShowAllData method of Worksheet class
failed".
How can I stop this error message, or better still advise the user (MSGBOX?)
that all the data is currently being shown?
Thank you for your help.
user friendly.
I have included a button to restore the Show All Data using the VBA:
ActiveSheet.ShowAllData
This works, but only if there has been a filter applied. If the user clicks
the button again (without a filter being present) I get the following error
message - "Run Time error 1004 - ShowAllData method of Worksheet class
failed".
How can I stop this error message, or better still advise the user (MSGBOX?)
that all the data is currently being shown?
Thank you for your help.