Need a button to click to toggle cell color on/off

T

Tonso

I know how to toggle say..the grid....on or off, using a button. But,
how do I toggle cell interior color on/off. Specifically, I want to
click on a button and make a "No Fill" cell yellow, or a yellow cell
"No Fill". I am using Excel 2002.

As usual, thanks for any and all help.

Tonso
 
G

Gord Dibben

The formatting toolbar has a color picker button.

Takes two clicks, not one, but not too onerous in my mind.

If the only two choices are yellow and no color, record a macro while toggling
on/off using the default color picker.

Assign the macro to a button.

Just rmember to change the hard-coded cell reference to ActiveCell


Gord Dibben MS Excel MVP
 
T

Tonso

The formatting toolbar has a color picker button.

Takes two clicks, not one, but not too onerous in my mind.

If the only two choices are yellow and no color, record a macro while toggling
on/off using the default color picker.

Assign the macro to a button.

Just rmember to change the hard-coded cell reference to ActiveCell

Gord Dibben MS Excel MVP





- Show quoted text -

Thanks once again for helping me sove a problem and learn a bit more
about Excel VBA!
Tonso
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top