FormDescription.ScriptText Property
Outlook Developer Reference |
Returns a String containing all the VBScript code in the form's Script Editor. Read-only.
Syntax
expression.ScriptText
expression A variable that represents a FormDescription object.
Example
This Microsoft Visual Basic Scripting Edition (VBScript) example uses the Open event to access the HTMLBody property of a MailItem. This sets the EditorType property of the MailItem’s Inspector to olEditorHTML. When the MailItem's Body property is set, the EditorType property is changed to the default. For example, if the default e-mail editor is set to RTF, the EditorType is set to olEditorRTF. If this code is placed in the Script Editor of a form in design mode, the message boxes during run time will reflect the change in the EditorType as the body of the form changes. The final message box uses the Script Text property to display all the VBScript code in the Script Editor.
Visual Basic Scripting Edition |
---|
|
See Also