How Do I create 2 separate independent (Fill Color) buttons?

zotah

Board Regular
Joined
Feb 1, 2014
Messages
89
How Do I create 2 separate independent (Fill Color) buttons?

I need to highlight hundreds of indepentant excel cells and conditional formating isn't what I need to make this work. I just use the (Fill Color) button and it works great. However it slows me down having to switch different colors every time I use the (Fill Color) button over and over again. I use primarily 2 colors all the time.

When I duplicate the (Fill Color) button so I have 2 (Fill Color) buttons on my access toolbar it duplicates the same color that I have on the first (Fill Color) button.

How do I set it up so I can have 2 (Fill Color) buttons that are indepentent of each other so I don't have to switch colors back and forth over and over again?

Thanks for any advice on this hugh problem,

Zotah
 
Can't be done with a formula.
You may be able to Conditional Fomat the cells, but I doubt it.
It sounds like a very strange way to format cells though !!!
Here's 2 codes, 1 for yellow 1 for green
and look here for instructions on how to attach it to your toolbar in excel 2007 or higher !

How to Add an Excel 2010 Macro to the Quick Access Toolbar - For Dummies


Code:
Sub MM1()
    With Selection.Interior
        .Color = vbYellow
    End With
End Sub
Sub MM2()
    With Selection.Interior
        .Color = vbGreen
    End With
End Sub
 
Last edited:
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Can't be done with a formula.
You may be able to Conditional Fomat the cells, but I doubt it.
It sounds like a very strange way to format cells though !!!
Here's 2 codes, 1 for yellow 1 for green
and look here for instructions on how to attach it to your toolbar in excel 2007 or higher !

How to Add an Excel 2010 Macro to the Quick Access Toolbar - For Dummies


Code:
Sub MM1()
    With Selection.Interior
        .Color = vbYellow
    End With
End Sub
Sub MM2()
    With Selection.Interior
        .Color = vbGreen
    End With
End Sub

Thanks,

Maybe Excel will upgrade this feature on the next Excel Version.
This sounds like it would be easy for excel to fix this problem easily anyway.

Thanks Zotah
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top