1、WORD文字转表格
2、复制粘贴到EXCEL表
3、另存为 DBF 表
oWord=Createobject('word.application') oWord.Visible=.T. **** _fnm="2021年第35届中国化学奥林匹克初赛一等奖名单.doc" _fnm=ADDBS(SYS(5)+SYS(2003))+_fnm oWord.documents.Open(_fnm) htext=oWord.ActiveDocument.Paragraphs(1).Range.text oWord.Selection.Find.ClearFormatting oWord.Selection.Find.Replacement.ClearFormatting oWord.ActiveDocument.Content.Find.Execute(htext,.F.,.F.,.F.,.F.,.F.,.F.,.F.,.F.,'',2) WITH oWord.activedocument FOR i=1 TO .Tables.Count .tables(1).delete ENDFOR ENDWITH oWord.ActiveDocument.Content.Find.Execute("^p^p",.F.,.F.,.F.,.F.,.F.,.F.,.F.,.F.,"^p",2) oWord. ActiveDocument.Words(1).delete oWord. ActiveDocument.saveas2(FORCEEXT(_fnm,'txt'),2) oWord.ActiveDocument.close(0) *** Release oWord