Vba Hide Sheet Before Close. Then I want it to hide the rows on close and then re-protect the sheet again. This macro works great if you are hiding and unhiding sheets every day/week/month for a report that you maintain.
I am trying to find a way to programmatically "hide" the Workbook Queries Pane when a worksheet has a PQ rather than having the user need to close the Macro recording doesn't log any events from the Power Query Try clicking on the button to see that it works! Userforms are vital while getting inputs from the user as part of the VBA project.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy.
Now once again, I will double click on the cancel button to see the private subprocedure.
Those updates require us to unhide a few. The above code would hide all the worksheet except the except the active sheet. The purpose is for specific cells on every sheets to be locked every time the Excel file is opened, and to have a button that if I click on unlocks everything at once.