OL97: General Information About Using VBScript with OutlookLast reviewed: March 17, 1998Article ID: Q167138 |
The information in this article applies to:
SUMMARYThis article provides general information about using Visual Basic Scripting Edition (VBScript) with Microsoft Outlook 97.
MORE INFORMATIONThis article discusses the following topics:
OverviewVBScript 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:
VBScript Version History
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/vbscript 3.1 Installed by Internet Explorer 4.1 3.1a Download only http://www.microsoft.com/vbscript How to Determine Your Version of VBScriptTo determine which version of VBScript you have, follow these steps:
How to Obtain VBScript 3.x and Its DocumentationVBScript 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/downloadDocumentation for VBScript 3.x is available from the following address:
http://www.microsoft.com/vbscriptNOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:
http://www.microsoft.com/ How to Debug VBScript Programming CodeOutlook 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/debuggerFor 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.
Deploying VBScript with an Outlook SolutionIf 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.
REFERENCESFor 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |