Good morning cedarhill
Originally Posted by
cedarhill
On top of the embarrassment of not realizing protecting worksheets that include macros cause a problem, I've never written a line of VBA code in my life.
We all have to start somewhere
You will need to amend your code so that when the macro is run, the protection is removed, the filters are amended, and then the protection is set again. You can find out the syntax by recording the actions and editing as appropriate, but your code would look roughly like this :
This may change depending on what settings you have invoked, password etc.
HTH
DominicB
Bookmarks