This code will hide row 2 across Sheet1, Sheet2 and Sheet3 while recording in the macro record mode but when played back after recording will only hide row 2 on Sheet1. How do I get this code to work?
Hide Rows on Multiple Worksheet Pages
-
-
-
-
-
Re: Hide rows on multiple pages
The 1st code suggestion does not work,
CodeSub MultiplePageHideRows() Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select Rows(2).EntireRow.Hidden = True End Sub
The second approach works but is tedious. My sheets all have names so I would have to cycle through 15 named sheets to hide a given row on each sheet. The row being hidden is based on a cell value in a row on sheet1 of the 15 named sheets.
There must be an easier way to hide the same row across multiple sheets without having to cycle through each sheet to do it. Why can you copy and paste across multiple sheets with the VBA Array structure but you can't hide rows. Very baffling.
-
Re: Hide rows on multiple pages
Hi,
Quotecycle through 15 named sheets
I figured so much ;-). How about this? -
-
Re: Hide rows on multiple pages
How about
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!