Solved

Outlook integration

Posted on 2004-03-26
2
369 Views
Last Modified: 2008-02-01

I created an application that has a feature that can integrate with MS outlook. Not all the users of this app have outlook and would like to use the integration feature.

I am using vb6, how can i check if the correct version of outlook is installed, and if not skip over the outlook intgration code.

Thanks

0
Comment
Question by:rovi
2 Comments
 
LVL 9

Expert Comment

by:p_sie
ID: 10690374
check if the folder of office exists is a quick and easy way.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 200 total points
ID: 10697038
I can think of two other ways to check.  One, check the registry and see if Outlook is installed.  I don't know what key to look for though.  Two, the following code checks the version of Outlook.  If Outlook isn't installed, then creating the Outlook.Application object will fail and the OnError code can return a value indicating that Outlook isn't installed.  The code is pretty simple and straightforward so it should get the job done.  However, I suppose something other than Outlook not being installed could cause an error in which case the function would say Outlook isn't installed when in fact it is.  You could also modify the function to return a boolean value instead of the version number.

Function CheckOLVersion()
   On Error GoTo Outlook_Not_Installed
   Dim objOutlook As Outlook.Application
   Set objOutlook = New Outlook.Application
   CheckOLVersion = objOutlook.Version
   Set objOutlook = Nothing
   Exit Function
Outlook_Not_Installed:
   CheckOLVersion = "Not Installed"
End Function

If CheckOLVersion() <> "Not Installed" Then
   Execute Outlook Integration Code
End If
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now