A
Alan Stancliff
Here's a Word 2003 VBA question about RANGEs that's been driving me nuts
for a while.
Supposing I have a document that somewhere has the following on a line
by itself, effectively being a paragraph:
**********
(A) MY SAMPLE WORDS TO SELECT: Hello World
and later on it has a line that has
(B) MY OTHER SAMPLE WORDS TO SELECT: Hello Universe, So Vast Thou Art.
*********
Without using the search functionality, how would one code to do the
following three tasks:
1. Select the the stuff following the colon and two spaces in sample
(A), whatever it may be (in this case, "Hello World")
2. Select the stuff before the comma in my example (B), whatever it may
be (in this case it is Hello Universe)
3 Select the stuff between the comma and end of the line (in this case,
it is "So Vast Thou Art").
Regards,
Alan
for a while.
Supposing I have a document that somewhere has the following on a line
by itself, effectively being a paragraph:
**********
(A) MY SAMPLE WORDS TO SELECT: Hello World
and later on it has a line that has
(B) MY OTHER SAMPLE WORDS TO SELECT: Hello Universe, So Vast Thou Art.
*********
Without using the search functionality, how would one code to do the
following three tasks:
1. Select the the stuff following the colon and two spaces in sample
(A), whatever it may be (in this case, "Hello World")
2. Select the stuff before the comma in my example (B), whatever it may
be (in this case it is Hello Universe)
3 Select the stuff between the comma and end of the line (in this case,
it is "So Vast Thou Art").
Regards,
Alan