English 中文(简体)
从出入渠道开始――第二次失败
原标题:Starting Word from Access - 2nd time fails
  • 时间:2009-10-07 19:30:54
  •  标签:

一开始 我从“接触”的一种形式讲,是:

   Dim wordApp As Word.Application
   Dim wordDoc As Word.Document
   Dim wordRange As Word.Range

   Set wordApp = CreateObject("Word.Application")

   wordApp.Visible = True
   Set wordDoc = wordApp.Documents.Open(etikettenTemplate)

     fill in some bookmarks in the word doc

   Set wordApp = Nothing
   Set wordDoc = Nothing
   Set wordRange = Nothing

问题在于:这是该法首次实施的。 我第二次出现错误462: 遥远的服务器计算机没有或没有。

The trouble is, I can t control the whole cycle, as the user may need to edit the word doc before closing. Am I doing something wrong? Thanks for any suggestion

最佳回答

职业妇女能够自己解决问题。

错误是,我正在通过手法获得书记。

积极文件.Bookmarks (mybookmark). 范围

而不是先前选定的字句 变数

By changing all occurences of ActiveDocument with wordDoc the problem vanished.

感谢一切

问题回答

暂无回答




相关问题
热门标签