Macro to search for a word within the first 10 lines of a document

D

Dusty

Hi, is there a way to search for a certain word within the first 10 lines of
a doc?

I want a message box to say "yes" if found, and "no" if not. Thanks.
 
H

Helmut Weber

Hi Dusty,
Hi, is there a way to search for a certain word within the first 10 lines of
a doc?

lines or paragraphs?

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
D

Dusty

Hi - lines please. I'm pretty good at VBA in Excel, but not Word.

Any help would be appreciated. Thanks!
 
D

Doug Robbins - Word MVP

Ditto

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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