Microsoft Office Tutorials and References
In Depth Information
will open the dialog box shown in Figure 27.15. This is essentially identical to setting properties
for an existing action with these additions:
n Name: Enter a name for the action.
n Form Name: Specify the name of the form that the action will open either by clicking the
down arrow and selecting a form or by typing in the form name.
n Check: If you type in a form name, click this button to verify that the specified form is
available in the Forms Library.
n Show Action On: Specify where on the form the action should be displayed.
FIGURE 27.15
Defining a new action for a form.
Using VBScript in Your Forms
VBScript is a programming language that can be used to add functionality to Outlook forms. It is
a lightweight version of the VBA language you use in Outlook macros. Unlike VBA macro code,
however, VBScript code is part of the form and its functionality goes wherever the form goes.
Furthermore, VBScript was designed to be safe, lacking many of the programming commands that
could be damaging if used in a malicious manner. Examples of things you can do with VBScript are
to create a form that interacts with an external database, write form data to an XML file, and
manipulate controls on the form.
To work with a form’s VBScript, click the View Code button in the Form section of the ribbon. This
opens the Script Editor, shown in Figure 27.16 (with no code visible). You enter and edit your
code here, then when finished close the Script Editor to return to the form — the code is
automatically saved with the form.
Search JabSto ::




Custom Search