Results 1 to 2 of 2

Thread: Find If Word Is Open

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    24

    Question

    I write an application that open MSword , I use GetObject:
    Set objWord = GetObject(, "Word.Application")

    but if MSword is close it raise an error (429), then I use this (after the ErrHandler tag):

    Set objWord = New Word.Application 'Create New refernce for Word
    Resume Next

    I wonder if there is a way to find if MSword is open , before i call GetObject ( I dont want to use this :
    Set objWord = GetObject("", "Word.Application"))

    Thanks

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    If you use CREATEOBJECT instead of GETOBJECT, you won't experience this problem.

    Otherwise you can use the FINDWINDOW Api.
    Chemically Formulated As:
    Dr. Nitro

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