Get text & background color with single button click.

S

Sinner

Hi,


Each time I have to select a cell color and a background color in
excel mostly using to highlight table headers.

Is is possible to have one button which can get me both colors (text
color & background) in single go.
Backgound color should be black.
Font color should be white.


How will I put it behind a custom button on toolbar for ready access
and use in all excel sessions.

I think VB involved.


Thx.
 
B

BobT

Simply record a macro of you applying your formatting (be sure the Relative
Reference button is activated) then add a button to the toolbar for the
macro. If you record the macro to your "Personal Macro Book), the button
will be available to you everytime you launch excel. To add the button to a
toolbar:

1. Right mouse click on a toolbar and choose CUSTOMIZE.
2. Click on the COMMANDS tab.
3. In the CATEGORIES list, scroll down and select MACROS.
4. Click and drag either a Custom Menu Item (your button will have text on
it) or Custom Button (you'll have a picture on it) to any visible toolbar.
5. Right mouse click on the button you just added and choose ASSIGN MACRO.
6. Select the macro you recorded and click OK.
7. Click on the CLOSE button.

Viola, you're done.
 

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