Scripting in Office Applications

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

In the past, scripting in Microsoft® Office applications was confined to manipulating Microsoft® Outlook® objects and controls from within an Outlook form. In addition, in one sense this is still the case. You can still use script to work with Outlook objects from within the Outlook application. You still use Microsoft® Visual Basic® for Applications (VBA) to work with the objects exposed by Office applications.

What has changed is that you can now use Office applications to create Office documents designed to be viewed with a Web browser. This section discusses working with the Microsoft Script Editor and using scriptlets.

In This Section

  • Working with the Microsoft Script Editor
    The Microsoft Script Editor has been added to the Microsoft® Office applications, so you can work with the HTML code, DHTML objects, and script in an Office document from within an Office application.
  • Understanding Scriptlets and Behaviors
    A scriptlet is a lightweight, reusable Component Object Model (COM) component that consists of HTML code and script and is created according to certain conventions.