How to Align Buttons in Excel (Form Controls & Shapes)

How-to basics · Updated November 28, 2026

Aligning buttons in Excel means arranging form control buttons, ActiveX buttons, or shape buttons so they line up evenly, have consistent spacing, and stay attached to the correct cells. This guide shows you the fastest methods using built-in alignment tools, plus how to keep buttons aligned when you resize or hide rows/columns. You’ll need a worksheet with at least two buttons already inserted (from the Developer tab or Insert > Shapes). If you don’t see the Developer tab, right-click the ribbon and choose Customize the Ribbon, then check Developer.

What You’ll Need

  • Excel 2016 or later (Microsoft 365 recommended) on Windows; Mac steps noted where they differ.
  • Buttons already inserted: go to Developer > Insert > Form Controls (Button) or ActiveX Controls, or use Insert > Shapes > Rounded Rectangle.
  • Access to the Shape Format tab (appears when a button is selected).
  • Optional: the Developer tab enabled for form controls.

Step-by-Step

  1. Select all buttons you want to align. Click the first button, then hold Ctrl (Windows) or Cmd (Mac) and click each additional button. For buttons that are close together, you can also drag a selection box around them, but be careful not to select cells.
  2. Open the alignment tools. With the buttons selected, go to the Shape Format tab (it appears automatically when shapes or buttons are selected). Look for the Arrange group. On Windows, click Align; on Mac, the Align options are under Format > Align in the menu bar.
  3. Choose an alignment option. From the Align dropdown, pick one of these:
    • Align Left – left edges line up.
    • Align Center – centers horizontally.
    • Align Right – right edges line up.
    • Align Top – top edges line up.
    • Align Middle – centers vertically.
    • Align Bottom – bottom edges line up.

    The buttons will snap to the edge of the first button you selected (the one with white handles, not black).

  4. Distribute buttons evenly. Still on the Align dropdown, choose Distribute Horizontally or Distribute Vertically to make equal gaps between buttons. This works best with three or more buttons.
  5. Align to the grid (optional). To snap buttons to cell boundaries, hold Alt (Windows) or Option (Mac) while dragging a button. This makes it easier to align with cells manually.
  6. Use the Size group for exact dimensions. If you want buttons to be the same size, select them all and enter the same Height and Width in the Size group on the Shape Format tab. This is often needed before aligning.
  7. Group buttons (optional). After aligning, right-click one of the selected buttons and choose Group > Group. This keeps them together when you move or resize them later. To ungroup, right-click and choose Group > Ungroup.
  8. Lock buttons to cells (for form controls). Right-click a form control button, select Format Control, go to the Properties tab, and choose Move and size with cells. This keeps the button aligned with its cell when you insert or delete rows/columns. For shape buttons, this option is under Size & Properties (right-click > Size and Properties > Properties).

Common Mistakes

  • Selecting only one button. Alignment options are grayed out unless two or more buttons are selected. Always select all buttons first.
  • Using the wrong Align option. “Align Center” centers horizontally, not vertically. Use “Align Middle” for vertical centering.
  • Forgetting to set equal sizes first. Aligning edges doesn’t make buttons the same size; you must set dimensions manually.
  • Dragging buttons without holding Alt. This can cause buttons to land between cells, making them hard to align later.
  • Not setting “Move and size with cells.” If you insert a row above a button, it stays put while the cells shift, breaking alignment.

Tips

  • Use the Selection Pane (Shape Format > Selection Pane) to name your buttons (e.g., “Submit”, “Cancel”) and select them easily, especially when they overlap.
  • For perfect spacing, use Distribute Horizontally after setting equal widths. The gaps will be identical.
  • If you want buttons to align with a specific cell range, select the range first, then use Align > Align Center – but note that this aligns to the range, not to other buttons. To align to a range, use the Snap to Shape feature under Align > Grid Settings (Windows only).
  • On a Mac, the Align options are under the Format menu when shapes are selected, not on the ribbon.
  • For ActiveX buttons, you can set the same properties (Move and size with cells) by right-clicking the button and choosing Properties, then setting Placement to 1.

Troubleshooting

Alignment options are grayed out. Make sure you have selected at least two buttons. If you have selected a chart or other object, deselect and try again. Also, ensure the buttons are not grouped – ungroup first.

Buttons don’t snap to cells when dragging. Hold Alt (Windows) or Option (Mac) while dragging. If that doesn’t work, go to Shape Format > Align > Snap to Grid (Windows) and ensure it’s checked.

Buttons move when I hide rows/columns. Right-click the button, choose Format Control (or Size and Properties), and set the placement to “Move and size with cells” (or “Move but don’t size with cells” if you want to keep size). For ActiveX, set Placement to 1.

Distribute doesn’t work evenly. Distribute uses the total space between the first and last button. If you want equal gaps, ensure the first and last buttons are in the correct positions first. Also, select all buttons before distributing.

Buttons overlap after alignment. This happens when buttons are larger than the space between them. Reduce the button size or increase the spacing by moving the first and last buttons farther apart before distributing.

Frequently Asked Questions

Q: Can I align buttons to a specific cell or range?
A: Yes, but not directly with the Align tool. Select the range, then use the Align options – they align to the range’s edges. For example, select A1:C1 and three buttons, then Align Center to center them within that range. However, this only works if the buttons are already roughly in the right area.

Q: How do I align buttons vertically in a column?
A: Select all buttons, then choose Align > Align Center (horizontal) and Align > Distribute Vertically to space them evenly down the column. Set equal heights first.

Q: What’s the difference between Form Controls and ActiveX buttons for alignment?
A: Form Controls are simpler and align with cells using the Properties setting. ActiveX buttons have more properties but can be less stable. Both use the same alignment tools on the Shape Format tab.

Q: Why don’t my buttons align when I use the Align tool on a Mac?
A: On Mac, the Align options are under the Format menu (Format > Align) when shapes are selected, not on the ribbon. Also, ensure you have selected multiple buttons.

Q: Can I align buttons that are on different worksheets?
A: No, alignment tools work only on the same worksheet. You’ll need to align each sheet separately.

Q: How do I keep buttons aligned when I insert a new row?
A: Set the button’s properties to “Move and size with cells” (Form Controls) or Placement = 1 (ActiveX). Then insert the row – the button will move down with the cells.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.