Using the FrontPage Visual Basic Editor
Using the Microsoft Visual Basic Editor (VBE) is an integral part of working with the object model in
Microsoft FrontPage. Use the
VBE to compose, debug, and run your code.
- To access the VBE,
choose Visual Basic Editor from the Macro item on the Tools
menu, as shown in the following figure. Alternately, press Alt+F11.
.gif)
This topic discusses the following three areas of the VBE screen:
Project Explorer
Code Editor
Object Browser
Once inside of VBE, use the Project Explorer to manage what
code, form
and class modules you have available in your project. You can drag *.bas, *.frm
and *.cls files and drop them onto the Project Explorer to import them
into your project. Likewise you can drag *.bas, *.frm and *.cls modules
from the Project Explorer and drop them onto a folder or you desktop.
Doing so will export your files from the project. The Project Explorer is
shown in the next figure.
.gif)
Normally, you add your code to the a module by typing it
into the Code Editor. The drop down boxes at the top of the Code Editor window allow
the programmer to select the object and procedure with which to work. The Code Editor is shown in the
following figure.
.gif)
Another important tool available in VBE is the Object
Browser. The Object Browser allows the programmer to browse the object
exposed for a particular library or for all object libraries reference in the
project.
The Object Browser is shown in the following figure.
.gif)
For more information on using the VBE, please see
the Visual Basic Editor Help.