ID: Q167138
The information in this article applies to:
This article provides general information about using Visual Basic Scripting Edition (VBScript) with Microsoft Outlook 97.
This article discusses the following topics:
VBScript is the programming language that you use to create custom form solutions with Outlook 97. Microsoft Internet Explorer also uses VBScript to create custom HTML page solutions.
VBScript is 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 items, such as a contact, mail message, or appointment. There is no global repository for VBScript code in Outlook as there is with 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.
Outlook's implementation of VBScript is by design and there are no current plans to implement Visual Basic for Applications within Outlook. VBScript is Microsoft's programming environment for all "enterprise" (or "distributed") solutions, mainly for two reasons:
Version Availability Notes
------- -------------------------- ---------------------------------
1.0 Included with Outlook
versions 8.0 - 8.02
2.0 No longer available for The self-installing executable
Download. Included with filename was Scr20en.exe. Added
with Internet Information features included arrays, the
Server (IIS) 2.0. For Each...Next structure, and
GetObject/CreateObject commands.
3.0 Installed by Internet See the following Web site for
Explorer 4.0 all current information:
http://www.microsoft.com
/scripting/vbscript
3.1 Installed by Internet
Explorer 4.1
3.1a Download only http://www.microsoft.com/
/scripting/vbscript
To determine which version of VBScript you have, follow these steps:
1. On the Windows taskbar, click the Start button, point to Find, and then
click Files Or Folders.
2. In the Named box, type "vbscript.dll" (without the quotation marks), and
then click Find Now.
3. Using the right mouse button, click the Vbscript.dll file name in
the Name list, and on the shortcut menu, click Properties.
4. Click the Version tab and note the "File version" information.
VBScript DLL version File Date File Size
---------------------------------------------------
1.0 1.0.0.806 (varies) 206,848 bytes
2.0 2.0.0.1125 (varies) 252,232 bytes
3.0 3.0.0.2026 9/18/97 327,952 bytes
3.1 3.1.0.2124 11/18/97 328,976 bytes
3.1a 3.1.0.2430 12/30/97 328,976 bytes
VBScript 3.x is installed as part of Microsoft Internet Explorer 4.x, which is available from the Microsoft Web site at the following address:
http://www.microsoft.com/ie/download
Documentation for VBScript 3.x is available from the following address:
http://www.microsoft.com/scripting/vbscript
Outlook 97 provides no built-in debugging tools for troubleshooting programming problems. However, you can get debugging functionality by using the VBScript debugger which is commonly used with Internet Explorer.
Free, unsupported beta versions of debuggers are available on the Microsoft Web site at the following address:
http://www.microsoft.com/scripting/debugger
For VBScript version 1.0 or 2.0, use the debugger for Internet Explorer
3.x. For VBScript versions 3.x, use the debugger for Internet Explorer 4.0.
To access the debugger from Outlook, place a Stop statement in your VBScript code. When the VBScript code runs and reaches the Stop statement, the debugger starts, and you can then step through your code in the debugger or use the debugger's Immediate or Command window to view the contents of variables ("? <Variablename>" is the syntax). Note that you cannot edit the VBScript code within the debugger.
If an Outlook solution uses any commands specific to VBScript version 2.0 or 3.x, you must install the updated version of VBScript on all of the computers that will use the solution.
Outlook primarily uses Vbscript.dll, but the complete set of scripting DLLs also include Jscript.dll, and Scrrun.dll.
For more information about creating solutions with Microsoft Outlook 97, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q166368
TITLE : OL97: How to Get Help Programming with Outlook
ARTICLE-ID: Q170783
TITLE : OL97: Q&A: Questions about Customizing or Programming
Outlook
Additional query words: OutSol OutSol97
Version : 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: January 5, 1999