GarysStudent
Mon Feb 25 13:00:07 CST 2008
Here is an event macro. It examines cell A1 every time the cell is changed.
If the value is "a", then the color of the font of the range of interest is
set to black. If the value put in A1 is not "a", then the font color is set
to white. White-on-white is like hiding the cells.
Because it is worksheet code, it is very easy to install and use:
1. right-click the tab name near the bottom of the window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window
If you save the workbook, the macro will be saved with it.
To remove the macro:
1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window
To learn more about macros in general, see:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
To learn more about Event Macros (worksheet code), see:
http://www.mvps.org/dmcritchie/excel/event.htm
--
Gary''s Student - gsnu2007d
"mlv" wrote:
> I have a summary worksheet with several columns of information.
>
> There is one particular column (E25:F39) where I don't always want to print
> the values. Is there some simple way to toggle this column's values on and
> off just before hitting the print command?
>
> I was thinking of using an adjacent tick box outside the print area, which
> when ticked would print the column values, and vice-versa.
>
> I'm looking for a formula that would examine the tick box, and if the tick
> (letter 'a' in Marlett font) is not present (i.e. cell value = ""), then the
> values in column (E25:F39) would be hidden or inhibited in some way so that
> the cells print blank.
>
> Or, is there a better way of achieving this?
>
> TIA
> --
> Mike
> -Please remove 'safetycatch' from email address before firing off your
> reply-
>
>
>
>