var WordApp=new ActiveXObject("Word.Application");
WordApp.Application.Visible=false;
var Doc=WordApp.Documents.Open("Word.doc");
Doc.Activate();
var Range=doc.Range();
//未测试
var Find=Range.Find();
Find.Excute('XID','123');
//
WordApp.DisplayAlerts=false;
Doc.Close();
WordApp.DisplayAlerts=true;
WordApp.Quit();
WordApp.Application.Visible=false;
var Doc=WordApp.Documents.Open("Word.doc");
Doc.Activate();
var Range=doc.Range();
//未测试
var Find=Range.Find();
Find.Excute('XID','123');
//
WordApp.DisplayAlerts=false;
Doc.Close();
WordApp.DisplayAlerts=true;
WordApp.Quit();
http://expert.csdn.net/Expert/topic/2639/2639421.xml?temp=.4768183