Solved

Find out if MS Word is available

Posted on 2004-10-21
3
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

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

Independent Software Vendors: 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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Progress
Starting up a Project

623 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