|
Topic 37: Visual Basic Editor - Getting Started to Know the Excel VBA Feature |
Views: 2340
|
Thread Tools | Rate Thread |
#1
|
|||
|
|||
Topic 37: Visual Basic Editor - Getting Started to Know the Excel VBA Feature
To start the editor, open an Excel file that contains macros. Then, click the Tools menu, point to Macro and click on Visual Basic Editor.
The Editor contains two important windows: the Project Explorer and the Code window. 1) The Project Explorer The Project Explorer located at the left hand side of the editor screen. It displays a hierarchical list of the projects and all of the items contained in and referenced by each of the projects. From the Project Explorer, it contains several elements:
- Forms: any user defined forms. - Modules: recorded and written procedures. |
#2
|
|||
|
|||
2) The Code Window
Use the Code window located at the right hand side of the editor screen enables you to write, display and edit Visual Basic code. To open a Code window from the Project Explorer window, just double-click on a form or module in the Project Explorer. You can highlight and drag the selected text to a different location in the current Code window or to another Code window. Here are the components on the code window:
If (General) is displayed in the Object box, the Procedure box lists any declarations and all of the general procedures that have been created for the form. If editing module code, the Procedure box lists all of the general procedures in the module.
|