Site icon Best Excel Tutorial

How to Use Visual Basic Editor in Excel

This guide introduces the Visual Basic Editor in Excel, where you can edit recorded macros and write new VBA code (Visual Basic for Applications). This is practically relevant workshop in which you write code programs.

Run the Editor

To run the Visual Basic Editor, you can use several ways:

To close the Visual Basic Editor can also be used several ways:

Project Window

The Project Explorer window in VBA looks and works like Windows File Explorer. It displays a hierarchical list of all VBA components in your project and lets you navigate between them easily. To open the Visual Basic Editor Project window

The upper part of the window contains three buttons:

Properties Window

The Properties window in VBA shows the attributes of the selected object. You can modify properties here to change the behavior or appearance of the object. To the editor to display the Properties window:

In the upper part of the window’s drop-down list. This list gives the opportunity to select an object (by clicking on the arrow), whose properties you want to view. You can view object properties in the VBA editor alphabetically or by category using the two tabs in the Properties window.

The left column of each of the cards (as viewed from the user) is a set of parameters specifying the names of your element, while the right side is the size and characteristics of these parameters.

Code Window

The Code window in Excel VBA is used to write, view, and edit your Visual Basic for Applications code. This window is probably the most often used by us. You can open as many windows as a program code to the modules.

To the editor, open the code window, in the Project window, double-click the left mouse button the object. Another way is to select the corresponding object in the Project window and then:

Components

In the upper part of the window we can distinguish two components:

It should be mentioned are the two buttons located at the bottom left of the window. Procedure View button that displays only the chosen procedure. The second button displays the Full Module View all of the code module. Between the windows described above, we can provide some dependencies:

Exit mobile version