P
PCLIVE
I saw another post regarding problems with hiding columns using a macro.
I run the macro recorder, group several sheets together, and then select
multiple columns on the sheet. Goto format and select the option to
columns, hide. I stop the macro recorder. When checking each of the sheets
that were grouped together, the selected columns on each worksheet has been
hidden. That is what I want. If I unhide everything and then run the macro
I just recorded, it only hides the columns on the active sheet. Does anyone
know why this is happening and how I can get it to the same columns on all
of the grouped sheets, just as if I was doing it manually.
This is what gets recorded my the macro recorder.
Rows("1:17").Select
Sheets(Array("Sheet2", "Sheet3", "Sheet4")).Select
Sheets("Sheet4").Activate
Selection.EntireRow.Hidden = True
Rows("25:39").Select
Selection.EntireRow.Hidden = True
Columns("B:F").Select
Range("B18").Activate
Selection.EntireColumn.Hidden = True
Thanks,
Paul
I run the macro recorder, group several sheets together, and then select
multiple columns on the sheet. Goto format and select the option to
columns, hide. I stop the macro recorder. When checking each of the sheets
that were grouped together, the selected columns on each worksheet has been
hidden. That is what I want. If I unhide everything and then run the macro
I just recorded, it only hides the columns on the active sheet. Does anyone
know why this is happening and how I can get it to the same columns on all
of the grouped sheets, just as if I was doing it manually.
This is what gets recorded my the macro recorder.
Rows("1:17").Select
Sheets(Array("Sheet2", "Sheet3", "Sheet4")).Select
Sheets("Sheet4").Activate
Selection.EntireRow.Hidden = True
Rows("25:39").Select
Selection.EntireRow.Hidden = True
Columns("B:F").Select
Range("B18").Activate
Selection.EntireColumn.Hidden = True
Thanks,
Paul