ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Switch between two states (https://www.excelbanter.com/excel-programming/388681-switch-between-two-states.html)

clara

Switch between two states
 
Hi all,

The blank ranges on a worksheet should be hidden out before the worksheet is
printed. It is easy to do it, but after printing, the worksheet shoul
restore to its original state before printed. Is there an easy way to do it
in Excel?

Clara

--
thank you so much for your help

[email protected]

Switch between two states
 
Hi
If rows and columns have been hidden try

Sub tester()
ActiveSheet.Columns.Hidden = False
ActiveSheet.Rows.Hidden = False
End Sub

regrads
Paul

On May 3, 5:21 pm, clara wrote:
Hi all,

The blank ranges on a worksheet should be hidden out before the worksheet is
printed. It is easy to do it, but after printing, the worksheet shoul
restore to its original state before printed. Is there an easy way to do it
in Excel?

Clara

--
thank you so much for your help





All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com