Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Microsoft Office XP
FrontPage 2002
SDK Documentation
Macros
 Using the FrontPage Visual Basic Ed...
 
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.

This topic discusses the following three areas of the VBE screen:
Project Explorer
Code Editor
Object Browser

Project Explorer

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.

Code Editor

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.

Object Browser

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. 

  • To access the Object Browser choose Object Browser on the View menu. Alternately, press F2.

The Object Browser is shown in the following figure.

For more information on using the VBE, please see the Visual Basic Editor Help.

  • To access the Visual Basic Editor Help, start the VBE and press F1.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker