EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Excel Insert Button
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Excel Insert Button

By Jeevan A YJeevan A Y

Excel Insert Button

Excel Insert Button (Table of Contents)

  • Introduction to Excel Insert Button
  • How to Insert a Button in Excel?

Introduction to Excel Insert Button

VBA macros are the most advanced level of excel, and we all know about that as well. In this article, we will write a simple macro and how to assign that macro a button to run at any point in time.

How to Insert a Button in Excel?

In Excel, we can insert buttons according to our needs. We can use a form control button or command button to perform a certain action when we click on it. Both are known as push button that can be set to automate worksheet printing, data filtering or numbers calculation.

Lets us see some of the examples of how to insert a button in excel.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

You can download this Excel Insert Button here – Excel Insert Button

Example #1 – Insert Serial Numbers Using Record Macro

Before you go ahead and learn about macro coding, let me teach you the macro record option in excel. Record macro simply records all the activities you do on the excel worksheet.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,725 ratings)

Step 1: Go to the Developer Tab and click on Record Macro.

Excel Insert Button 1.1

Step 2: Now, it will ask you to name your Macro. Give a name to your recording macro.

Excel Insert Button 1.2

Step 3: Click on OK to start recording.

Excel Insert Button 1.3

Step 4: Select cell A1 and type serial number 1.

EIB 1.4

Step 5: Type 2 in cell A2 and drag till the 10th row.

EIB 1.5

Step 6: Now stop recording under the Developer tab.

Excel Insert Button 1.6

Step 7: Now click on Visual Basic to see what excel has recorded.

Excel Insert Button 1.7

Step 8: Below is the record of the macro.

EIB 1.8

Firstly we have selected cell A1, i.e. Range (“A1”).select. Now cell A1 becomes an active cell. In the active cell, we have typed the number “1”; then we have selected cell A2, i.e. Range (“B2”).select

Like this, it has recorded all those things we have done in the worksheet.

Step 9: Now, we can insert serial numbers from 1 to 10 from A1 to A10 at any point in time.

Example #2 – Assign Macro to a Button

We have created a macro and named it has SerialNumber. We cannot go back to macro and run at all the time. Rather we can assign a button to this macro so that we can access the macro by just click of the mouse.

Step 1: Go to the Developer tab and click on the Insert button.

EIB 2.1

Step 2: Select the first option called Button under Form Controls and draw on the worksheet.

EIB 2.3

Step 3: As soon as you draw, it will ask you to assign a Macro to this button.

EIB 2.4

Step 4: Select the macro name to assign to this button.

EIB 2.5

Step 5: Click on OK to complete. Now the macro is assigned to the button. You can click on this button to run a macro and insert serial numbers.

EIB 2.6

Example #3 – Assign Macro to a Shape

We have seen how to assign macro to a button under the Developer tab. You know what? It is not mandatory to use the insert button to assign macro; instead, we can use our own shape to assign macro. Follow the below steps to assign a macro to your own shape.

Step 1: Go to Insert.

Excel Insert Button 3.1

Step 2: Under the Illustrations, we have to go to Shapes.

Excel Insert Button 3.2

Step 3: Click on the drop-down and select the shape you wish to have after selecting; draw this in your worksheet.

Excel Insert Button 3.3

Step 4: Now, you can change the color and view of the shape as per your wish under the Format tab.

EIB 3.4

Step 5: Right-click on the shape and select Assign Macro.

EIB 3.5

Step 6: Now, we will see the assign macro window as we have seen in the button macro process. Select the macro you wish to assign and click on OK.

EIB 3.6

Step 7: Now again, right-click on the shape and select Edit Text.

EIB 3.7

Step 8: Now, give a proper name to the shape, which is understandable to the users.

EIB 3.8

Now we can use this button to insert serial numbers.

Excel-Insert-Button-3.9

Example #4 – Other Options under Insert button in Excel

Now we will see other options available under the INSERT button. We can create a checklist by using the Option Button. Consider this below task list, for example.

Excel Insert Button 4.1

Step 1: Go to the Developer tab > Insert > Option Button.

Excel Insert Button 4.2

Step 2: Draw the options button in cell C2.

Excel Insert Button 4.3

Step 3: Right-click on the options button and select Format Control.

Excel Insert Button 4.4

Step 4: Under Format Control Window, go to the Control tab.

Excel Insert Button 4.5

Step 5: Under Cell Link, gives a link to cell D2.

EIB 4.6

Step 6: Click on OK. Now click on Option Button, we can see number 1 in cell D2.

EIB 4.7

Step 7: Right-click and delete the text and retain only the plain option button and adjust to the middle of the cell.

Eib 4.8

Step 8: Repeat the same task for all the cells. Change the cell accordingly. Whenever the button is clicked in the respective row, cells in the D column value will be changed from zero 1.

Things to Remember

  • It is not mandatory to assign a macro to the insert button rather;, we can use shapes as well.
  • We can create any kind of shape to assign a macro button.
  • We can also create shortcut keys to run a macro instead of a button.
  • How to use a checklist refer to our previous articles.
  • If you want to enable develop tab, see our previous articles on how to enable the Developer tab.

Recommended Articles

This is a guide to Excel Insert Button. Here we discuss How to Insert a Button in Excel along with examples and a downloadable excel template. You may also look at the following articles to learn more –

  1. Insert Comment in Excel
  2. Excel Insert Page Break
  3. Excel Insert Multiple Rows
  4. Insert New Worksheet In Excel
Popular Course in this category
All in One Excel VBA Bundle (120+ Courses)
  120+ Online Courses |  500+ Hours |  Verifiable Certificates |  Lifetime Access
4.9
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
Excel Data Analysis Training (17 Courses, 8+ Projects)4.8
Excel for Finance Training (18 Courses, 7+ Projects)4.7
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formulas, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Excel Insert Button

EDUCBA

Download Excel Insert Button

EDUCBA

डाउनलोड Excel Insert Button

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more