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
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/scripting/vbscript 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: Q166368 OL97: How to Get Help Programming with Outlook Q170783OL97: Q&A: Questions about Customizing or Programming Outlook Additional query words: OutSol OutSol97
Keywords : |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |