EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • Featured Skills
    • New & Trending
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Log in
  • Sign Up
Home Excel Excel Resources Excel Tips Excel Insert Button
 

Excel Insert Button

Jeevan A Y
Article byJeevan A Y
Madhuri Thakur
Reviewed byMadhuri Thakur

Updated June 6, 2023

Excel Insert Button

 

 

Introduction to Excel Insert Button

In this article, we will learn about 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.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

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 examples of how to insert a button in Excel.

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.

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 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 everything we did in the worksheet.

Step 9: Now, we can insert serial numbers from 1 to 10 from A1 to A10 at any 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 the Insert button.

EIB 2.1

Step 2: Select the first option, 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 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 a macro to a button under the Developer tab. You know what? It is not mandatory to use the insert button to assign a macro; instead, we can use our shape to assign a macro. Follow the below steps to assign a macro to your 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 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 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 the Options Button. We can see number 1 in cell D2.

EIB 4.7

Step 7: Right-click and delete the text, 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. Whenever the button is clicked in the respective row, the D column value’s cells will change from zero to 1. Change the cell accordingly.

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, 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

Primary Sidebar

Footer

Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

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

EDUCBA

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

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

EDUCBA

Download Excel Insert Button

EDUCBA
Free Excel Course

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

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

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

Forgot Password?

EDUCBA

Download Excel Insert Button

EDUCBA

डाउनलोड Excel Insert Button

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

🚀 Limited Time Offer! - ENROLL NOW