Word Search .....

C

Cherry

I am writing Macro in Word 2000, and I want to search the
text "<To:xxxxx xxx>" in the document and retrieve "xxxxx
xxx" from the document and store it in a variable. Did
anyone know how to do this??

Many Thanks : )
Cherry
 
T

Tushar Mehta

Turn on the macro recorder (Tools | Macro > Record new macro...), do
what you want through the GUI, and turn off the recorder. WD will give
you the necessary starter code that you can subsequently tweak.

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top