你的wordapp是全局的把,是不是应该wordapp.documents.open(directory)
为什么第一遍就可以,先来就不行了呢。

解决方案 »

  1.   

    现在出现错误
    run-time error"462"
    the remote server mathine does not exist or is unvailable
    停在wordapp.documents.open(directory)行如何解决?
      

  2.   

    1.Dim doc As New Word.Document, doc1 As New Word.Document
     doc没有用到?!2.再试试
    ......................
    WordApp.Visible = False
     doc1.Save
     WordApp.Quit 
    '*******释放doc1 ********
    set doc1 = Nothing
    '*************************
    Set WordApp = Nothing
      

  3.   

    directory文件路径错误wordapp.documents.open(directory)
    打开前看文件是不是还在,试图打开一个不存在的文件错误
      

  4.   

    to  mousean(幻想无限) 
    我改过来了:)不是这问题