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 / March 2005

Tip: Looking for answers? Try searching our database.

Select first word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steved - 05 Mar 2005 21:12 GMT
Hello from Steved

In a Macro can I use the  ("selection.words(1).select")
to find a word in the first paragrah

as an example

2. 53207. Wheresdad (2) 3g b

It would in this case find Wheresdad

Thankyou.
Jonathan West - 05 Mar 2005 21:58 GMT
> Hello from Steved
>
[quoted text clipped - 6 lines]
>
> It would in this case find Wheresdad

In that example the first word in the paragraph is 2. If you want to use a
different definition of Word, then you have to accept that you will have to
code it manually.

So, the first thing to ask is "how are you defining a word?"

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Steved - 05 Mar 2005 22:48 GMT
Hello from Steved

I define the first word by the first line in a paragraph.

ie, 2. 53207. Wheresdad (2) 3g b

in the above it would be Wheresdad.

>-----Original Message-----
>
[quoted text clipped - 14 lines]
>
>So, the first thing to ask is "how are you defining a word?"
Helmut Weber - 05 Mar 2005 23:20 GMT
Hi Steve,

no way. Means, whatever you do, there is no proof
to show, that the result of a code will always be
what you expect. "1st", "2nd": Words or no words?

"Formula-1-pilot"

"In the year 2525..."

"King Henry VIII"

and so on forever...

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Steved - 05 Mar 2005 23:30 GMT
Thanks

I now know this is not going to do what I want

Thanks.

>-----Original Message-----
>Hi Steve,
[quoted text clipped - 19 lines]
>
>.
 
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.