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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find a replace a string in MS Word

Status
Not open for further replies.

tedbartly

IS-IT--Management
Nov 20, 2002
1
NZ
Hi

just wondering if you can help, I am try to work with large files in MS Word doing a find and replace, is there any way I can get the 'tdk no' on each line and for it to change when it finds a new one (ehg goes from tdk123, to
tdk134 etc).

example of problem and whats required below

The id is a fixed lenght of 6 characters.


Problem
----------------------------------

tdk123

home,true,false,100,1222
home,true,false,100,1222
home,true,false,100,1222
home,true,false,100,1222


tdk134

home,true,false,100,1222
home,true,false,100,1222
home,true,false,100,1222
home,true,false,100,1222
home,true,false,100,1222



What the result should be

----------------------------------
tdk123,home,true,false,100,1222
tdk123,home,true,false,100,1222
tdk123,home,true,false,100,1222
tdk123,home,true,false,100,1222


tdk134,home,true,false,100,1222
tdk134,home,true,false,100,1222
tdk134,home,true,false,100,1222
tdk134,home,true,false,100,1222
tdk134,home,true,false,100,1222
 
Are you trying to do this from within Microsoft Access?

If so, are you using the Word.Application object model?

If not, you would have better success posting this in the Microsoft Office forum. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top