Solved

Find out if MS Word is available

Posted on 2004-10-21
3
186 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 51

Accepted Solution

by:
Ryan Chong earned 250 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…

830 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