You are currently offline, waiting for your internet to reconnect

General information about how to use VBScript with Outlook custom forms

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

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.
More information


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.
1.0Included with Outlook versions 8.0 through 8.04
2.0No 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.
3.0Installed by Internet Explorer 4.0
3.1Installed by Internet Explorer 4.1. Download file: Scr31en.exe
3.1aNo 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.
4.0Installed by Visual Studio 6.0. Added features are specific to use with Visual Studio. Not available for download.
5.0Installed by Internet Explorer 5.0, which is installed by Microsoft Outlook 2000.
5.1Installed by Internet Explorer 5.0 as part of Office XP.
5.5Available 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:

Deploying VBScript with an Outlook solution

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.
OutSol OutSol2000 OutSol2002 OutSol2003

Article ID: 290661 - Last Review: 09/03/2013 10:33:00 - Revision: 3.0

  • Microsoft Office Outlook 2003
  • Microsoft Outlook 2002 Standard Edition
  • Microsoft Outlook 2000 Standard Edition
  • kbdswnet2003swept kbinfo KB290661