Elite Membership

Developer Tab In Excel

Written by Vidya Subbu Vidya Subbu Excel Content Writer & Editor Vidya, a former software engineer turned seasoned content writer with 7+ years of experience, excels in creating engaging content. As an editor at WallStreetMojo, she dreams of publishing her own book. 7+ years of experience B.E. (Electronics and Instrumentation) MS Excel - Basic and Advanced View Full Profile
Reviewed by Dheeraj Vaidya, CFA, FRM Dheeraj Vaidya, CFA, FRM Content Reviewer & Course Director Dheeraj is a former J.P. Morgan and CLSA Equity Analyst with nearly two decades of experience in financial modeling, valuation, equity research, and corporate finance. He specializes in helping students and professionals develop practical and in-demand finance skills through structured and AI-powered, 20+ Years of experience CFA, FRM, IIT Delhi, IIM Lucknow Financial Modeling View Full Profile
Updated Dec 20, 2024
Read Time 7 min

What Is Developer Tab In Excel?

The Developer Tab in Excel is a tab that has some functions and tools used toย generate Macros, create VBA applications, design forms, and import/export XML, that is not found in Excel by default. We have to enable the tab from the โ€œExcel Optionsโ€ window.

Download FREE Developer Tab Excel Template and Follow Along!
Download Excel Template

For example, when we open the Excel worksheet, by default, the Developer Tab will not be found, and the ribbon will be as shown below.

Home Tab

However, once we enable the โ€œDeveloperโ€ tab, the tab will be visible on the Excel ribbon always, even when we close and reopen the workbook, as shown below.

Developer - Tab
Developer - Checkbox

Key Takeaways

  • The Developer tab in Excel is an inbuilt feature that can be enabled or disabled as required to use some additional features, such as Macros, Form Controls, VBA editor, etc.,
  • We can run the VBA Macros in the following ways, Press the Function key F5. Assign a Macro to a button or a Text Box to run it. In the Visual Basic Editor window, press the โ€œRunโ€ button, as shown in the following image.
  • We can make a worksheet data interactive by using the options in the Controls group of the Developer Tab, such as Check Box, Spin Button, Scroll Bars, etc., as shown below.

How To Add Developer Tab In Excel?

The steps to add theExcel Developer Tabare as follows:

  1. Open a new Excel sheet and navigate to the โ€œFileโ€ tab. Then, go to the โ€œOptions.โ€
  2. After clicking โ€œOptions,โ€ we must select โ€œCustomize Ribbonโ€ on the left. Next, select โ€œMain Tabsโ€ on the right, then check the โ€œDeveloperโ€ checkbox and click the โ€œOKโ€ button.
  3. As a result, the โ€œDeveloperโ€ tab would appear in the Excel file.

How To Write VBA Programs Using Developer Tab?

We can use the Developer Tab in Excel to write VBA programs, as follows:

First, open an Excel workbook – select the โ€œDeveloperโ€ tab – go to the โ€œCodeโ€ group – click the โ€œVisual Basicโ€ option to open the โ€œVisual Basic Editorโ€, as shown below.

Developer Tab In Excel

Now, the โ€œMicrosoft Visual Basic for Applications โ€“ Working Test.xlsxโ€ window opens. Click the โ€œInsertโ€ tab – and select the โ€œModuleโ€ option, as shown below.

VBA Module

Once the โ€œModuleโ€ window opens, write the required VBA Code, and Run/Execute it.

Examples

We will consider examples to use the Excel Developer tab to write VBA programs.

Example Example #1 โ€“ Writing a Simple Code for Displaying โ€œHi, Welcome to VBAโ€.

The steps to write a simple VBA program are as follows:

  • First, navigate to the โ€œDeveloperโ€ tab, and select โ€œVisual Basic.โ€ A new window will pop up.
  • Next, double-click on โ€œSheet1 (Sheet1)โ€. A blank document or pane appears on the right side.
Developer Tab Example 1
  • Next, write the code shown in the image below, and click the โ€œRunโ€ button.
Developer Tab Example 2

A pop-up box would appear saying, โ€œHi, Welcome to VBAโ€, as shown above.

Example #1 Code Explanation:

  • Subย andย End Subย are used as procedures or, say, the main body of the program.
  • โ€œMsgboxโ€ is a functional feature in the VBA package that displays whatever is written in it here, for example (โ€œHi, Welcome to VBAโ€).

Save the above code as a .xlsm file to save the macro code.

Example #2 – Click on Button Feature

This particular feature enables anyone to run the code with the click of a button.

For better understanding, let us illustrate where a person dynamically enters their name and birthplace, which would be displayed as an output.

  • First, we must go to the โ€œDeveloperโ€ tab, click on theย Radio buttons in excel,ย and select โ€œButton (Form Control).โ€
Developer Tab Example 2

Now, drag it anywhere on the worksheet, and the following dialog box will appear. Rename the โ€œMacro name.โ€

Developer Tab Example 2-1

Click the โ€œNewโ€ button, and the following code page will appear.

Developer Tab Example 2-2

Example #2 – Coding part and Explanation

Developer Tab Example 2-3
  • โ€œDimโ€ function is used for declaring the variable, which can be the string, numeric, etcโ€ฆ (Here, name and birthplace are variables declared as string.)
  • โ€œInputBoxโ€ย is a functional feature in VBA wherein the user is asked for input.
  • โ€œMsgboxโ€ is the functional feature in the VBA package, which displays whatever is written.

Now close the code page window.

Then, we must right-click on the button, select the โ€œEdit Textโ€ in the Excel where one had created the button, and rename it to โ€œName_Birth.โ€

Developer Tab Example 2-4

Click on the button, and enter the name and birthplace. Two prompts would pop up for name and birth (enter the name and birthplace, e.g., Dhrish and Pune).

Developer Tab Example 2-5
Developer Tab Example 2-6

After inserting the name, the following output appears.

Developer Tab Example 2-7

Now, save the file as the โ€œ.xlsmโ€ file.

How To Record A Macro In Developer Tab?

We can record a Macro when we must perform a task repetitively, but want to save time on both the repetitive work and coding.

So, here is the earlier example that we took earlier. Consider the data given below. To color columns with formulae for every file, we can record the work by doing it first manually and then run it for other files.

Recording and Saving Macro 1

The steps to color columns F, G, and row total as yellow as formula columns and rows are as follows:

Recording and Saving Macro 1-1

Once we click โ€œRecord Macro,โ€ a dialog box will appear. Rename it to โ€œColor_Yellow.โ€

Recording and Saving Macro 1-2

Now, color columns F, G, and row total as โ€œYellowโ€, as shown below.

Recording and Saving Macro 1-4

After the coloring, go to the โ€œDeveloperโ€ tab, and now click โ€œStop Recordingโ€.

Recording and Saving Macro 1-5

Now, go to the โ€œDeveloperโ€ tab, click the โ€œVisual Basicโ€ option, and select โ€œModule1โ€, as shown below.

Recording and Saving Macro 1-6

Next time, if we want to repeat the task, we can click the (โ€œRun Macroโ€) button by copying and pasting the same code into the new Excel sheet using the link. Writing a simple code for displaying.

How To Ensure Macro Security Using Developer Tab?

To ensure Macro Security, we can enable password-protected macros if needed.

The steps to perform the Macro Security are as follows:

  • First, go to the โ€œDeveloperโ€ tab, and open โ€œVisual Basic.โ€
Macro Security 1

Open the โ€œMacroโ€ for which code needs enabling of the password (e.g., we take the Color_Yellow macro as in the above example).

Macro Security 1-1

We must select โ€œToolsโ€ and โ€œVBAProject Properties.โ€

Macro Security 1-2

Next, subsequently, a dialog box will appear. Here, select the โ€œProtectionโ€ tab, check/tick the โ€œLock project for viewingโ€, enter the desired password, confirm it, and click โ€œOK.โ€

Macro Security 1-3
  • Finally, save it as a .xlsm file while saving and closing it.

To cross-verify for Macro security, open the file and repeat steps 1,2 and 3. As a result, it will ask for a password. Insert the password, and click โ€œOKโ€, to view the Code.

Macro Security 1-4

Important Things To Note

  • The Developer tab is a built-in tab in Excel.
  • It is easy to automate everything with the use of recording the macro.
  • The best part about this is run-time prompts, or the user prompts, which can be given by clicking the button in VBA.
  • We can also create forms or basic UI in VBA. Please refer to the references for the same.

Frequently Asked Questions (FAQs)

What Is VBA Macro used from the Developer Tab In Excel?

โ€ข VBA or Visual Basic Application is a programming language used in Microsoft applications like MS Excel, MS Word, MS PowerPoint, etc.
โ€ข Macro is a piece of code written in Excel to perform repeated tasks.
VBA Macros are used to automate repetitive and complex tasks to save time and manual work. We can record the VBA Macro in Excel and run it as per our requirements.

Why is the Developer Tab In Excel not working?

A few reasons the Developer tab may not work are as follows:
โ€ข In Excel, the tab is not enabled by default. So, once we enable it from the Excel Options window, we can view the Developer tab on the ribbon for further use.
โ€ข The Excel the file may be corrupted, causing most of the tabs or options to grey out. In such scenarios, we must reinstall the application or just reopen the file for the tabs to work.

Explain the features available in the Developer Tab in Excel.

The following groups are found in the Developer Tab, namely:

Developer Tab Excel FAQ 3.jpg

1. Code It helps users to create VBA Codes and Macros where we can make, record, and edit macros to automate repetitive or manual tasks in Office applications.
2. Add-ins It helps us activate extra features, functionalities, and commands in the workbooks that are not enabled in Excel by default.
3. Controls – It is of 2 types, Form Controls & ActiveX Controls. Both are used on worksheets to create interactive buttons that are simple and easy to use.
4. XML – It helps us to import and export Extensible Markup Language (XML) data, i.e., to exchange data between different applications.

This article has been a guide to the Developer Tab in Excel. Here we enable Developer Tab to write, record, & secure Macros, VBA, examples & downloadable excel template. You may learn more about Excel from the following articles: –