Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to copy lines from a word file using VBA

Status
Not open for further replies.
Oct 22, 2001
215
US
I need some example/code if any one has done similer to this. Thanks agian
I got a word doc that contains several things along some filed description. The looks like this:
-----------
bla bla bla
-----------
.field fieldname1 fieldlength1
.filed fieldname2 filedlength2
___________
bla bla bla
----------
Now I need to copy only the fieldnames, and fieldlengths to another file.
I suspect I can do a search of the '.field' and copy those? and later replace the 'filed' part with blank using VBA code?
Has any one done this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top