Joshua is a graduate student at the USF. He has interests in business technology, analytics, finance, and lean six sigma.
In this tutorial, we look at how to activate the default Windows calculator from an Excel spreadsheet. This trick is for all of you Microsoft users that want to have the advantage of having a shortcut for frequent calculator use. That is if you can stand using the Windows calculator. It only takes a few steps to add a macro to a button to complete the setup. With that in mind, let’s get started.
Activate the Developer Tab
To have access to the tools that allow you to create a button, you must enable the developer tab on the Excel ribbon. If you will need to do this if you want to follow along and complete each step. To learn how to add the developer, open up this link in another browser tab.
Select a Button a to Add to the Spreadsheet
To add a button to the spreadsheet, click on the developer tab in the ribbon. Navigate to the controls section and select the insert button. Choose the button in the upper left-hand corner of the form controls section, as shown in the illustration below.
Draw a Box
Immediately after the button is clicked, you need to outline a square of a rectangle with your cursor to complete the creation of the button. This will determine the size and location of the button. To do so, left-click on your mouse and hold the button while you draw your shape. Once this is complete, a new window will appear.
Assign Macro Code to the Button
After the assign macro window appears, choose a name for your macro and select the new button. Doing so will open the Microsoft Visual Basic for Applications window. Here you can add the code located below that will activate the windows calculator application. Make sure that you keep the first line of codes where your button name appears and disregard the first line of code below.
After the code is inserted into the Visual Basic application, the Visual Basic window can be closed.
Changing the Label of the Button
To change the label on your button left clicking on the default text in the button, and your cursor will appear in the button, allowing you to edit. For this example, I’d like to change the name of my button label to Calculator so people know that it will call up a calculator. To change other properties of the button, right-click on it and choose format control. This will give you all of the design tools available to change the text design of the button and make other property changes.
Saving the Excel Workbook as a Macro-Enabled Workbook
In order for the assigned macro to function, the workbook must be saved as a macro-Enabled Excel workbook. To do so, click on the file tab and select save as. You can see an example of this selected highlighted in the illustration below. When saving, make sure you save the workbook with the selection outlined in red in the illustration below.
Crowder, J. (2020, January 1). How to Add the Developer Tab in Excel. Retrieved January 1, 2020, from https://youtu.be/nskuG6pK5ig.
- How to Create a Macro Button to Save & Close an Excel Workbook
The article describes how to create a macro button on an Excel spreadsheet that will save and close a workbook to avoid having to select both operations. This button can save you time and can be accomplished in only a few steps. A medium level of Exc
- How to Add the Developer Tab in MS Excel 2016
This article shows you how to navigate through the MS Excel options menu to enable visibility of the developer tab within the Excel main menu.
- Create a Macro Button That Will Clear All of Your Work Within an Excel Worksheet
Shows a Microsoft Excel user how create a button and record a macro that will clear a workbook when the button is clicked.
- Create a Macro Button in MS Excel 2016 to Filter Data
The article will show you how to create a set of buttons allowing you to filter a table within a spreadsheet and revert to your original view quickly. A document template for the task will be provided.
To learn more about developing in Excel, I recommend taking a look at the book Microsoft Excel 2019 VBA and Macros (Business Skills) by Bill Jelen to enhance your skills.
This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.
© 2019 Joshua Crowder