Hide a CELL (not entire row or column) when printing

  • Thread starter Thread starter Guest
  • Start date Start date
Hi
I have not tried this, but you could if there is more than one cell to hide
create a range name, select the individual cells, by hold down the Ctrl key
while selecting the cells with a mouse.
Once you have the range, record a macro to change the cell colour to say
white or whatever the cell background is and use a Workbook_BeforePrint Macro
to call the macro you have just recorded. You will then need a Before_save
Macro to change back the font colour.

Alternatively, If you do not want to show My Pay in Cell b2 you can put the
value in a range Name. Choose Insert, Name, Define In the Name Box Type
My_Pay (no spaces) and in the range box type =1000000 and change the formulas
to the range Name.

Regards
Peter
 
Oh... I did not realize that the solution was in the "Font white of a range"
section. It works like a charm.
Thanks
 
Back
Top