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!

MS Word - search and find text from external file?

Status
Not open for further replies.

Scotsman71

Programmer
May 28, 2003
8
CA
Okay...I'm doing a small project...basically I have a list of my friends addresses. Lets say 20 addresses. Whenever I wish to write them a letter, I have to key it in manually, or manually copy + paste from the text file I have.

I came up with a solution...right now, if I run a macro it will prompt me for the users first name, and it'll look inside the code of the macro to find that name, and copy the lines associated with it and paste it in.

However, I'd like to modify this further. I'd like to have all the addresses in a separate document(txt file probably), and so when I run the macro, it would prompt me for the persons first and last name(as it does now), and then it would look through the text file, locate the name and address, and paste it in. Has anyone seen a macro like this before, or any tips on how to do it? Been having problems executing it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top