Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dusty - 31 May 2008 13:06 GMT
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.
Helmut Weber - 31 May 2008 13:23 GMT
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
Dusty - 31 May 2008 17:46 GMT
Hi - lines please. I'm pretty good at VBA in Excel, but not Word.

Any help would be appreciated. Thanks!

> Hi Dusty,
>
[quoted text clipped - 10 lines]
>
> Vista Small Business, Office XP
Doug Robbins - Word MVP - 31 May 2008 22:09 GMT
Ditto

Signature

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

> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.