查看完整版本: how to use Macro in word documents?

wandering 2007-1-24 01:19 AM

how to use Macro in word documents?

need delete a few lines from a lot of articles, they have certain characterics for these lines of letters...sample below:


------------------------------------------------------------------------------------------------
Moving the Market: Corporate Overhauls Are Proving To Be Effective, Greenspan Says
David Wessel.  Wall Street Journal.  (Eastern Edition). New York, N.Y.:May 16, 2005.  p. C.3
Subjects:        Reorganization
Classification Codes        9190,  2320
Locations:        United States,  US
People:        Greenspan, Alan
Author(s):        David Wessel
Document types:        News
Publication title:        Wall Street Journal. (Eastern edition). New York, N.Y.: May 16, 2005.  pg. C.3
Source type:        Newspaper
ISSN:        00999660
ProQuest document ID:        839997371
Text Word Count        375
Document URL:        [url]http://proquest.umi.com/pqdweb?did=839997371&Fmt=3&clientId=19504&RQT=309&VName=PQD[/url]
Abstract (Document Summary)
Federal Reserve Chairman Alan Greenspan defended the Sarbanes-Oxley Act that Congress passed after a series of corporate accounting scandals, saying he is surprised that a law enacted so "rapidly" has "functioned as well as it has."
In his remarks, Mr. Greenspan said the statute "will doubtless be fine-tuned as experience with the act's details point the way," but added that "merely certifying that generally accepted accounting principles were being followed is no longer enough."

Full Text (375   words)
Copyright (c) 2005, Dow Jones & Company Inc. Reproduced with permission of copyright owner. Further reproduction or distribution is prohibited without permission.
Federal Reserve Chairman Alan Greenspan defended the Sarbanes-Oxley Act that Congress

-----------------------------------------------------------------------------------------------------------
I want to delete from "subjects" line to "abstract(doument summary)" lines...any one can help?hehe....thanks....

sunflower 2007-1-24 09:48 AM

You can treat them as plain text files and process them using Perl script or Linux shell script
页: [1]
查看完整版本: how to use Macro in word documents?