Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Find out if MS Word is available

Posted on 2004-10-21
3
Medium Priority
?
190 Views
Last Modified: 2010-04-17
For some time I have been using the registry to determine if MS Word is installed on a computer.

I am tring to avoid using the registry in my new version. Does anyone know a way of detecting if MS Word is installed on a machine without going to the registry?

I am using MS Access VBA and am upgrading the application from Access97 to Access2002

Regards

Ray
0
Comment
Question by:rgudgeon
3 Comments
 
LVL 54

Accepted Solution

by:
Ryan Chong earned 1000 total points
ID: 12368077
To determine whether M$ Word is installed, try like:

Public Function isWordInstalled() As Boolean
    On Error GoTo EH
    Dim objApp As Object
    Set objApp = CreateObject("Word.Application")
    DoEvents
    Set objApp = Nothing
    isWordInstalled= True
    Exit Function
EH:
    isWordInstalled= False
End Function

then..

msgbox isWordInstalled
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Progress
Loops Section Overview

926 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