How To Enable Developer Tab And Write VBA Source Code In Excel

When you want to write VBA source code in Excel, as a beginner, maybe you can not find where to start. This article will tell you how to enable the Excel Developer tab and open the Microsoft Visual Basic for Applications window to write visual basic source code on both Windows & macOS.

1. How To Enable The Excel Developer Tab On Windows.

  1. To write VBA source code on Windows, you need to first enable the Excel Developer tab.
  2. If you can not find the Developer tab on the Excel top tab bar, you can follow the below steps.
  3. Click the Excel File —> Options menu item to open the Excel Options popup dialog window.
  4. Click the Customize Ribbon menu item on the Excel Options window left panel.
  5. Select the Main Tabs item from the Customize the Ribbon drop-down list on the dialog right side.
  6. Check the Developer checkbox below the drop-down list.
  7. Now you can see the Developer tab when you create an Excel worksheet.

2. How To Enable The Excel Developer Tab On macOS.

  1. Click the Excel —> Preferences… menu item in the Excel top menu bar.
  2. Then it will open the Excel Preferences dialog window.
  3. Click the Ribbon & Toolbar icon in the Authoring section to open the Ribbon & Toolbar dialog.
  4. Click the Ribbon tab to select and show the menus in the Ribbon.
  5. Select the item Main Tabs from the Customize the Ribbon drop-down list on the right side of the window.
  6. Make sure the Developer checkbox is checked under the above drop-down list.
  7. Then you can see the Developer menu item on the Excel top menu bar.

3. How To Open Visual Basic for Applications Window To Write Visual Basic Source Code.

  1. After you enable the Developer tab in Excel, you can start to write VBA source code in it.
  2. Open an Excel worksheet and select an object such as an image, shape, cell .etc.
  3. Click the Developer tab on the worksheet top area to show the developer ribbon.
  4. Then you can see the icons such as Visual Basic, Macros .etc.
  5. Click the Visual Basic icon, it will open the Visual Basic for Applications window.
  6. Then you can write VBA source code and run/debug the source code there.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.