Solved

Find out if MS Word is available

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

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

Title # Comments Views Activity
groovy example issue 10 90
Path to Python 9 107
how to use laptop or pad camera in vb.net windows application 2 54
Auto-indent certain lines in Notepad++ 10 29
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

920 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

12 Experts available now in Live!

Get 1:1 Help Now