In this guide, we’re going to show you how to insert a button in Excel.
Developer Tab and Button command
The command for adding option buttons can be found under the Developer tab, which is not active in Excel by default. This tab contains macro tools. along with other advanced controls, such as buttons.
If the tab is missing in your Excel, follow the steps below.
- Open Excel Options under File.
- Select Customize Ribbon.
- Find and mark the checkbox for Developer in the list box on the right.
- Click the OK button to see the tab in the Ribbon.
Inserting a button
Once the Developer tab is visible, you can find the Option Button command under the Insert button in the Controls section. When you click the Insert button, you will see the same controls under two sections:
- Form Controls
- ActiveX Controls
Clicking the Option Button button changes the cursor into a plus. Click anywhere to insert a default option button, or hold and drag the cursor to define the size of the option.
Once a button is inserted, Excel automatically opens the Assign Macro dialog. The Assign Macro dialog allows you to either select an existing macro or create a new one. Click Cancel if you do not want to assign a macro yet.
Modifying and multiplying buttons
Now, let's take a look at further configuration options for inserting an option button. First of all, you can change the default "Button 1", "Button 2", etc. names. You can change the label by right clicking the option button and selecting Edit Text.
You can use Excel's drag and drop feature for copying an option button multiple times. However, you need to fit the option button into a cell first.
- Use the circles around to adjust its size. You can also use the Snap to Grid feature for this.
- Once the option button is in a cell, select the cell.
- Copy it down to by using tiny square at bottom right like copying cells.
Once you have as many buttons as you would like, use the Assign Macro command. Use the right-click (context) menu to display the Assign Macro dialog and set macros to corresponding buttons.