how to make a button on excel

How to Create Buttons Excel

By William Thomas
AD

Streamlining your workflow in Excel often involves automating repetitive tasks, and creating buttons for common actions can significantly enhance productivity. Here's a step-by-step guide on how to make an Excel button, also known as a shape, that can execute specific Excel commands.

Before we dive into the process, ensure your Excel version is up-to-date. The newer the version, the more features you'll have at your disposal. Now, let's dive into two primary methods to create Excel buttons: using theDeveloper tab and using macros.

Using the Developer Tab

The Developer tab in Excel provides a range of tools for creating shapes, which can be assigned actions for a quick and easy solution.

AD
Macro Buttons in Excel - ALL You Need to Know (+ video tutorial)
Macro Buttons in Excel - ALL You Need to Know (+ video tutorial)
How to Create a Button in Excel: Easy Guide - Excel Wizard
How to Create a Button in Excel: Easy Guide - Excel Wizard
How to Create Your First Macro Button in Excel
How to Create Your First Macro Button in Excel

Let's explore how to create a basic shape button that executes a simple task:

Creating a Shape Button

Excel's shapes aren't traditional buttons, but they can perform similar actions. Here's how to create one:

How to create button to go to certain sheet in excel
How to create button to go to certain sheet in excel
Best Excel Tricks and Tips | Learn how to add interactive spin buttons in Excel to easily update your quantities with a single click | Facebook
Best Excel Tricks and Tips | Learn how to add interactive spin buttons in Excel to easily update your quantities with a single click | Facebook
Start a macro with a button in Excel
Start a macro with a button in Excel

1. Enable the Developer tab if it's not already visible: Go to File > Options > Customize Ribbon, then check the 'Developer' box.

2. In the Developer tab, click on 'Insert' in the 'Controls' section. Select a shape and draw it on your worksheet.

AD

3. Right-click the shape and choose 'Assign Macro'. Select a macro that performs the desired action or create a new one. Click 'OK' to save the assignment.

How to Insert and Customize a Radio Button in Excel
How to Insert and Customize a Radio Button in Excel
How to Use Option Button in Excel (2 Easy Ways) - ExcelDemy
How to Use Option Button in Excel (2 Easy Ways) - ExcelDemy
an excel spin button is shown with the year 2013 and 2012 highlighted in red, on a yellow background
an excel spin button is shown with the year 2013 and 2012 highlighted in red, on a yellow background
Auto Magic in Excel
Auto Magic in Excel
How to Create Macro Buttons in Excel Worksheets
How to Create Macro Buttons in Excel Worksheets
Mike Tholfsen - Microsoft tips on TikTok
Mike Tholfsen - Microsoft tips on TikTok

Assigning Actions to the Shape Button

After creating the shape, you can assign various actions to it. Here's how to assign actions like running a macro, showing a message box, or even opening another workbook:

1. Right-click the shape and select 'Edit Text'. Add a short label or a symbol to represent the action.

AD

2. Right-click the shape again and choose 'Format Shape' or 'Format Shape Outline' if there's no fill. In the side panel, click on 'Effects'.

How to Create Button to Link to Another Sheet in Excel (3 Ways) - ExcelDemy
How to Create Button to Link to Another Sheet in Excel (3 Ways) - ExcelDemy
How to Create Your Own Budget in Excel | Step-by-Step Tutorial
How to Create Your Own Budget in Excel | Step-by-Step Tutorial

3. Under 'Effect', choose 'Shadow'. This gives the shape a subtle 3D appearance like a real button.

Using Macros

Macros are Excel's unique feature, allowing users to record and automate multiple steps into a single command. To create a button that triggers a macro, you'll first need to record a macro containing the desired actions.

AD

Let's explore how to record and assign a macro to a button:

Recording a Macro

Macros can perform complex tasks efficiently. Here's how to record one:

1. Press 'Alt + F11' to open the Visual Basic for Applications (VBA) editor. Click on 'Insert', then 'Module' to insert a new module.

2. In the module, click on 'Insert' in the menu, then 'Module' if it's not already selected. Click on 'Visual Basic' in the menu to view the module.

3. Click on 'Record Macro' in the 'Developer' tab or press 'Shift + F12'. Name your macro and select a shortcut key (optional) if you want a keyboard shortcut.

4. Perform the actions you want the macro to automate. To stop recording, click on 'Stop Recording' in the 'Developer' tab or press 'Shift + F12'.

Assigning the Macro to a Button

After recording the macro, you can assign it to a shape or a customizable button. Here's how:

1. In Excel, go to the Developer tab and click on 'Insert' under 'Controls'. Choose 'Button (Form Control)' and click where you want the button.

2. Click on the button, then click on 'Assign Macro' in the 'Controls' group. Select your recorded macro and click 'OK'.

3. Customize the button's appearance if needed. Right-click the button, click on 'Format Control', then adjust the font, size, color, etc.

You've now created an Excel button that executes a specific task or macro. Streamline your work with these buttons, and say goodbye to repetitive manual tasks! To keep your sheets organized, consider grouping related buttons and providing clear labels. Happy automating!

AD