Excel VBA — How to Add the Developer Tab

In Excel for Windows, go to File > Options > Customize Ribbon, then select Developer under Main Tabs. On Mac, use Excel > Settings or Preferences > Ribbon & Toolbar. Showing the tab does not change which macros can run.

Show the Developer tab in Windows

  1. Open a workbook in desktop Excel and click File in the upper left.
  2. Open Options. In a narrow window, it may be under More at the bottom of the File menu.
  3. Choose Customize Ribbon on the left. Keep the drop-down on the right set to Main Tabs.
  4. In the tab list on the right, select Developer and click OK. The list on the left is for individual commands.
  5. Check that Developer appears on the ribbon. Clear the same checkbox to hide it again. Hiding the tab leaves the VBA code saved in your workbook intact.

Microsoft’s Developer tab guide

Show the Developer tab on Mac

From the menu bar, open Excel > Settings or Preferences > Ribbon & Toolbar. Under the ribbon settings, select Developer in Main Tabs. Save and close settings, then check the ribbon for the new tab.

Microsoft’s Developer tab guide for Excel for Mac

What you can do from the Developer tab

Visual Basic opens the editor for writing or inspecting VBA (Visual Basic for Applications) code. In Windows, Alt+F11 opens it as well.

Macros opens a list of saved macros. Use Alt+F8 in Windows to open that list. Record Macro captures repetitive steps, and Insert can add form controls such as buttons. Available commands can vary with the Excel installation.

If the tab is missing or a macro will not run

In desktop Excel, check that you confirmed or saved the ribbon settings and that the ribbon is not collapsed. Excel for the web can open a workbook that contains macros, but it cannot create, run, or edit VBA macros.

Microsoft’s VBA guide for Excel for the web

If the tab appears but a macro is blocked, verify that the file is trustworthy and follow your organization’s security policy. Showing Developer does not change the scope of macro permissions.

Microsoft’s Excel macro security guide