Results 1 to 3 of 3

Thread: How to know if MS Word is installed?

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    How to know if MS Word is installed?

    Without doing a search for "winword.exe", is there a quick way to know if Word is installed on a PC?

    I have my help files in 2 formats so far, .doc and .txt, and if they don't have Word installed, I just want to open the text file.

    Any ideas?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Here's one way...
    VB Code:
    1. Private Sub Command1_Click()
    2.     MsgBox IsWordInstalled
    3. End Sub
    4.  
    5. Private Function IsWordInstalled() As Boolean
    6. On Error Resume Next
    7.  
    8. Dim o As Object
    9.  
    10.     Set o = CreateObject("Word.Application")
    11.    
    12.     IsWordInstalled = Not (o Is Nothing)
    13.    
    14.     Set o = Nothing
    15.  
    16. End Function
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width