想到的是宏,循环,dir取档名,documents.open开档close关档。首行,selection.homekey,unit以wdstoryendkey选至最后,unit以wdline,extend以wdextend字串以selection.range.text取得,replace取代断行符号chr(13)为空字串""。写入文字档,以open filename for output as filenumber或以scripting.filesystemobject,createtextfile更名以name oldpathname as newpathname