Article ID: 182446 - Last Review: August 8, 2007 - Revision: 2.1 OL98: General Information About Using VBScript with OutlookThis article was previously published under Q182446 On This PageSUMMARY
This article provides general information about using Visual Basic
Scripting Edition (VBScript) with Microsoft Outlook 98.
MORE INFORMATION
This article discusses the following topics:
OverviewVBScript is the programming language that you use to create custom form solutions with Outlook. Microsoft Internet Explorer also uses VBScript to create custom HTML page solutions. Outlook installs VBScript version 3.1.VBScript is generally a subset of the commands available in Microsoft Visual Basic for Applications in Office 97, which in turn is a subset of the commands available in Microsoft Visual Basic 5.0. In Outlook, VBScript is stored within Outlook forms or items, such as a contact, mail message, or appointment. There is no global repository for VBScript code in Outlook as there is for VBA code in other Office applications. All programming from within Outlook involves creating a custom form. You can also automate Outlook from another Visual Basic or Microsoft Office application by using the object model of Outlook; however, the object model is heavily based on Outlook items and folders. VBScript offers the following advantages when used in an enterprise or distributed solution.
VBScript Version History
Version Notes
------- --------------------------------------------------------------
1.0 Included with Outlook versions 8.0 - 8.04
2.0 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.
3.0 Installed by Internet Explorer 4.0
3.1 Installed by Internet Explorer 4.1. Download file: scr31en.exe
3.1a Download only from http://msdn.microsoft.com/vbscript.
Download file: scr31en.exe. Fixed problem with GetObject,
which in 3.0-3.1 would always return a new instance of a
registered component or application.
4.0 Installed by Visual Studio 6.0. Added features are specific to
use with Visual Studio. Not available for download.
How to Determine Your Version of VBScriptTo determine which version of VBScript you have, follow these steps:
How to Obtain VBScript 3.1a and Its DocumentationThe VBScript 3.1a update and Scripting documentation is available from the Microsoft Web site at the following address:
http://msdn2.microsoft.com/en-us/library/ms950396.aspx
(http://msdn2.microsoft.com/en-us/library/ms950396.aspx)
Deploying VBScript with an Outlook SolutionIf an Outlook solution uses any commands specific to VBScript version 3.x, you must install the updated version of VBScript on all of the computers that will use the solution. This will only be a potential issue if some people are using a version of Outlook 97 earlier than version 8.03.If you download the scripting files from the Scripting web site, the complete set of scripting dynamic-link libraries (Vbscript.dll, Jscript.dll, and Scrrun.dll) are installed on the computer. Scrrun.dll provides additional objects for use with VBScript, such as the FileSystemObject for reading and writing text files in a file system. REFERENCES
For more information about creating solutions with Microsoft Outlook 98,
please see the following articles in the Microsoft Knowledge Base:
| Article Translations
|

Back to the top
