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!

looping a search with copy/paste

Status
Not open for further replies.

glarior

Programmer
Aug 4, 2005
42
US
Its been a long time since I have touched any of this but I am trying to create a simple program for me. I am using VB 6.5 that comes with MS word. I want to open the file, search for a paticular word and when it finds the word to copy the entire line and paste it into a new document.
I figured out how to find, copy, paste the entire line but I need it to repeat the process so it will search the entire document... how would I do that?

I had a EOF loop and I crashed MS word which lost my coding thus far lol. No biggie because I can write that part again.


Would you suggest another way of doing this? For all I know I am going in the wrong direction.

Thanks...
 
VB 6.5 is VBA, you probably want to ask your question in forum707

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top