ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide Columns When Printing (https://www.excelbanter.com/excel-programming/362070-hide-columns-when-printing.html)

Heather

Hide Columns When Printing
 
I would like help on how to view show columns when working on a worksheet,
but hide them when I print my worksheet. Can anyone help please?

Thanks!

[email protected]

Hide Columns When Printing
 
Try one of

Range(myRange).EntireColumn.Hidden = True
Range("B1").EntireColumn.Hidden = True
Columns("A:E").Hidden = True

Then one of
ActiveSheet.PrintOut
ActiveSheet.Print

Then the same line as above but with "=False"


Ron de Bruin

Hide Columns When Printing
 
See
http://www.rondebruin.nl/print.htm#Hide

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Heather" wrote in message ...
I would like help on how to view show columns when working on a worksheet,
but hide them when I print my worksheet. Can anyone help please?

Thanks!





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

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