Created a macro that will unhide 10 worksheet tabs based on a range reference. Macro works successfully in opening all 10 worksheets when run via macro window. But when I assign the macro to a command button the macro stops after two iterations in the middle of the process. If I click the button again it will only execute 2 iterations at a time on each button click. Below is a screenshot of macro. Using excel 365.