The information in this article applies to:
SUMMARYThere may be times when your Outlook solution needs to determine which version of Outlook is currently running so that your code can take appropriate action. This article describes an approach you can use to accomplish this. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspThe Outlook 98 object model does not provide a direct way of determining the installed version of Outlook. This functionality has been added to the Outlook 2000 object model, where the Application object has a Version property. To Use the OutlookVersion PropertyThe approach below creates a temporary Outlook item and obtains the version number using the OutlookVersion property. Then the temporary item is deleted. One advantage of using this approach is that it will work in situations where any version of Outlook may be installed on the system.
You would typically call this Visual Basic function from your code in the following manner: IMPORTANT: This solution is only designed to work with the three versions of Outlook specified in the previous sample code. Future releases of Outlook will require modification to the code in order to distinguish that version from Outlook 2000.
REFERENCESFor additional information about creating solutions with Outlook, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q180826 OL98: Resources for Custom Forms and Programming Q182349 OL98: Questions About Custom Forms and Outlook Solutions Additional query words: OutSol OutSol98 vbscript 98
Keywords : OffVBS |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |