Share via


Working with Microsoft FrontPage Objects

Microsoft® FrontPage® is a powerful and popular application used to create, deploy, and manage Web sites. You also can use FrontPage to create individual Web pages or modify existing Web pages.

FrontPage supports the Microsoft® Visual Basic® Editor and Microsoft® Visual Basic® for Applications (VBA). In addition, to make it possible for you to work with the various parts of a FrontPage-based web or a Web page, FrontPage now exposes a complete object model that you can use either from within a FrontPage VBA project or from another application through Automation. The new VBA language elements replace the FrontPage 98 language elements. To ensure backward compatibility, the FrontPage 98 language elements are included as hidden elements in the latest version of FrontPage object model, but these language elements are not recommended for use in FrontPage.

Note   You can use the Object Browser and Microsoft FrontPage Visual Basic Reference Help to learn more about individual objects, properties, methods, and events.

Although all Office applications support VBA, it is used a bit differently in FrontPage and Microsoft® Outlook® than it is in the other Office applications. FrontPage and Outlook support a single VBA project that is associated with a running instance of the application. The other Office applications make it possible for you to associate a VBA project with each Office document. For example, you can have several workbooks open in Excel at one time, and each workbook can have its own VBA project that contains modules, class modules, and UserForms. In FrontPage, you can have several webs or Web pages open at one time, but there is only one VBA project. The FrontPage VBA project is stored in a file named Microsoft FrontPage.fpm.

In This Section

  • Working with Office Applications
    Take advantage of different objects, collections of objects, properties, methods, and events to build your application.
  • Working with Microsoft Access Objects
    Use Form, Report, and DataAccessPage objects and the controls they contain to format and display data and make it possible to add or edit data in a database.
  • Working with Microsoft Excel Objects
    Use Microsoft® Visual Basic® for Applications (VBA) to work with Microsoft® Excel objects, from within either Excel itself or another Microsoft® Office XP application to gain access to every part of Excel.
  • Working with Microsoft Outlook Objects
    Create custom Microsoft® Outlook® objects and manipulate those objects from within Outlook, from another application using Microsoft® Visual Basic® for Applications (VBA) code from within Outlook, or from another Microsoft® Office XP application by using Automation.
  • Working with Microsoft PowerPoint Objects
    Automate Microsoft® PowerPoint® by using the Application object, from which you can open an existing Presentation object or create a new presentation.
  • Working with Microsoft Project Objects
    Build powerful custom applications easily with the Microsoft® Project object model.
  • Working with Microsoft Word Objects
    Use Microsoft® Visual Basic® for Applications (VBA) to work with the Microsoft® Word Document object, Application object, and Documents collection.
  • Working with Microsoft Visio Objects
    Design, model, and manage complex enterprise-level systems with the sophisticated toolset provided by Microsoft® Visio® products.