To fill and line a button in Excel, you first need a shape or form control button on the sheet, then use the Shape Format or Form Control Format options to set its fill colour and outline. Select the button, open the Format Shape pane (or the Format Control dialog for form controls), and choose Fill and Line settings. The exact labels vary slightly by Excel version and platform, so if a menu name looks different, look for the closest match. This guide covers both drawing shapes used as buttons and the older Form Control buttons, because they behave differently.

What You'll Need

  • Excel for Windows, Mac, or Excel for the web (the web version has fewer formatting options for shapes).
  • A button already inserted: either an Insert > Shapes rectangle, or a Form Control button from the Developer tab.
  • For form controls, the Developer tab enabled (File > Options > Customize Ribbon > check Developer).

Step-by-Step

If you are formatting a shape used as a button

  1. Click the shape once to select it. Small handles appear around its edge.
  2. Go to the Shape Format tab on the ribbon. If you do not see it, make sure the shape is selected.
  3. Click Shape Fill to choose a solid colour, gradient, picture, or texture. Pick a colour that contrasts with the text so the label stays readable.
  4. Click Shape Outline to set the line colour, weight, and dash style. A thin, dark outline usually looks cleanest.
  5. For finer control, right-click the shape and choose Format Shape. The Format Shape pane opens on the right.
  6. In the pane, select Fill & Line (sometimes shown as two separate icons: a paint bucket for Fill and a pen for Line).
  7. Under Fill, choose Solid fill and set a colour, or choose No fill if you want an outline-only button.
  8. Under Line, choose Solid line, then set the colour and width. Choose No line if you want a fill-only button.
  9. Close the pane. The shape keeps the new fill and outline.

If you are formatting a Form Control button

  1. Make sure the Developer tab is visible. If not, enable it through File > Options > Customize Ribbon.
  2. On the Developer tab, click Insert, then under Form Controls choose Button (the rectangle icon).
  3. Draw the button on the sheet. A dialog appears asking you to assign a macro; click Cancel if you only want to format it for now.
  4. Right-click the button and choose Format Control.
  5. In the Format Control dialog, open the Font tab to change the text style, and the Size tab for dimensions. Form Control buttons do not have a dedicated Fill or Line tab, so their fill and border follow the Windows theme rather than a custom colour.
  6. If you need a custom fill and outline, use a shape instead: Insert > Shapes > Rectangle, then format it with Shape Fill and Shape Outline as above and assign a macro by right-clicking the shape and choosing Assign Macro.

Common Mistakes

  • Selecting the cell behind the button instead of the button itself. Click the button's border, not its centre, when it is a form control.
  • Expecting Form Control buttons to accept custom fill colours. They do not; use a shape if colour matters.
  • Choosing a fill colour that matches the text, making the label invisible. Check contrast after every change.
  • Forgetting that a shape with No fill still captures clicks only on its visible outline and text area in some versions; test the button after formatting.
  • Editing the button while the sheet is protected. Unprotect the sheet first (Review > Unprotect Sheet) if the button is locked.

Tips

  • Use the Format Painter to copy a finished button's fill and outline to other buttons quickly.
  • Hold Alt while dragging a shape to snap it to cell edges for a tidy layout.
  • Set the shape's text with right-click > Edit Text, then format it through the Home tab font controls.
  • Keep one accent colour for primary buttons and a neutral fill for secondary ones so the sheet reads clearly.
  • If you plan to share the workbook, test the buttons in Excel for the web, where some shape formatting is simplified.

Troubleshooting

If the Shape Format tab does not appear, the shape is not actually selected; click its border once. If Format Control is greyed out, the sheet is probably protected, so unprotect it from the Review tab. If a form control button ignores your colour changes, that is expected behaviour; switch to a shape-based button. If the button stops responding after formatting, right-click it and check that a macro is still assigned. If the file was created on another computer, the theme colours may look different; reset the fill and outline manually. When nothing works, save and reopen the workbook before making further changes.

Frequently Asked Questions

Can I change the fill colour of a Form Control button?

No. Form Control buttons do not expose a fill or line setting. Use an Insert > Shapes rectangle and assign a macro to it instead.

Where is the Format Shape pane?

Right-click a shape and choose Format Shape, or use Shape Format > Shape Fill or Shape Outline for quick changes.

Why is my button text invisible?

The font colour likely matches the fill. Select the button, then change the font colour on the Home tab.

Do these steps work in Excel for the web?

Basic fill and outline options are available for shapes, but the full Format Shape pane and form controls are limited compared with the desktop app.

How do I remove a fill or outline entirely?

Choose Shape Fill > No Fill or Shape Outline > No Line. The button remains clickable where its text and border are visible.

Can I copy a button's formatting to another button?

Yes. Select the formatted button, click Format Painter on the Home tab, then click the target button.