Solved

Find out if MS Word is available

Posted on 2004-10-21
3
183 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 49

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

757 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

19 Experts available now in Live!

Get 1:1 Help Now