ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide Selected Cells (https://www.excelbanter.com/excel-programming/362077-hide-selected-cells.html)

Heather

Hide Selected Cells
 
Please help me on how to hide specific cells when printing.

Thanks!

Tom Ogilvy

Hide Selected Cells
 
You can only hide entire rows or entire columns or both - but you can't hide
an individual cell.

Assume you want to hide all rows in column A that are blank

rows.Hidden = False
On error Resume Next
set rng = columns(1).specialCells(xlBlanks)
On Error goto 0
if not rng is nothing then
rng.EntireRow.Hidden = True
End if
Activesheet.Printout
rows.Hidden = False

--
Regards,
Tom Ogilvy


"Heather" wrote:

Please help me on how to hide specific cells when printing.

Thanks!


Don Guillett

Hide Selected Cells
 
You cannot hide specific cells. You can hide rows/columns or change font to
white for selected cells.

--
Don Guillett
SalesAid Software

"Heather" wrote in message
...
Please help me on how to hide specific cells when printing.

Thanks!





All times are GMT +1. The time now is 06:50 AM.

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