Select first word

S

Steved

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.
 
J

Jonathan West

Steved said:
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

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?"
 
S

Steved

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.
 
H

Helmut Weber

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/
 

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