This article was previously published under Q290661
This article contains general information about how to use Microsoft Visual BasicScripting Edition (VBScript) together with custom forms in Microsoft Office Outlook and with Microsoft Outlook.
Note VBScript has not significantly changed since the year 2000. Therefore, the version information that follows is more important for earlier versions of Outlook. Generally, VBScript versioning does not affect custom form solutions that are developed for Outlook 2000 and for later versions of Outlook. However, if you will be using a custom form in Outlook 98 or in Outlook 97, you should carefully test the custom form to make sure that it is compatible with earlier versions of VBScript.
VBScript is the programming language that you use to create custom formsolutions for Outlook. Microsoft Internet Explorer also uses VBScriptto create custom HTML page solutions.
VBScript is generally a subset of the commands that are available in MicrosoftVisual Basic for Applications. Visual Basic for Applications is a subset of the commandsthat are available in Microsoft Visual Basic.
In Outlook, VBScript is stored in Outlook forms or items. For example, VBScript is stored in acontact, in a mail message, or in an appointment. There is no global repository forVBScript code in Outlook. This behavior differs from Visual Basic for Applicationscode.
VBScript offers the following advantages when you use it in an enterprise solution orin a distributed solution:
Because VBScript code is interpreted and not compiled, Outlook items are relatively small as measured by bytes. This means that Outlook items consume less corporate resources and Exchange Server resources and also give you faster performance.
VBScript is designed to be a secure programming environment. It lacks various commands that can be potentially damaging if they are used in a malicious manner.
VBScript version history
Note This list is incomplete. However, this list highlights the major versions of VBScript relative to the major versions of Microsoft Office and Outlook.
Included with Outlook versions 8.0 through 8.04
No longer available for download. Included with Internet Information Server (IIS) 2.0. Download file: Scr20en.exe. Added features included arrays, the For Each...Next structure, and GetObject/CreateObject.
Installed by Internet Explorer 4.0
Installed by Internet Explorer 4.1. Download file: Scr31en.exe
No longer available for download. Download file: scr31en.exe. Fixed a problem with GetObject. In versions 3.0 through 3.1, GetObject would always return a new instance of a registered component or application.
Installed by Visual Studio 6.0. Added features are specific to use with Visual Studio. Not available for download.
Installed by Internet Explorer 5.0, which is installed by Microsoft Outlook 2000.
Installed by Internet Explorer 5.0 as part of Office XP.
Available for download.
How to obtain VBScript updates and documentation
To obtain up-to-date information and documentation for Microsoft scripting languages, visit the following Microsoft Developer Network (MSDN) Web site:
If you download the scripting files from the Scripting Web site, thecomplete set of scripting dynamic-link libraries (Vbscript.dll,Jscript.dll, and Scrrun.dll) are installed on your computer. Scrrun.dllprovides additional objects for use with VBScript, such as theFileSystemObject for reading and writing text files in a file system. If you use any functionality that is provided by Scrrun.dll, you must make sure that this dynamic link library is installed on all computers that will use your solution.