Search results

  1. R

    Error: This command is not available because no document is open.

    darbid .... thanks for your reply/help. Rermoving the Get objWord staement fixed the problem. I didn't write this code and, as I said before, it ran fine for about 5 years. I've been here for 2 years and never had contact with it before last week. It just worked and everyone was happy. :) We may...
  2. R

    Error: This command is not available because no document is open.

    We are merging data with a Word doc. Depending on certain conditions, we insert a second doc and merge data to the second doc. The merge for the second doc is done in a Sub and we have been using the following code in the Sub to do this. Set objWord = GetObject(, "Word.Application")Set...
  3. R

    Error: This command is not available because no document is open.

    Doc_Man ... thanks for the reply. It looks like the doc has become inactive. Is there a way to tell if it is inactive and, if iso, is there a way to activate it without creating a new instance? Thanks Ray
  4. R

    Error: This command is not available because no document is open.

    We are merging data with a Word doc. Depending on certain conditions, we insert a secind doc and merge more data. I have been using this this code to do this Set objWord = GetObject(, "Word.Application") Set oDoc = objWord.ActiveDocument The application has been used for about 4-5 years...
Back
Top Bottom