Hi,
I'm trying to select all characters which have the same color as a certain
character without any gaps
example: bbbbbbbbbbbbbbbbbbbbbb<cursor is
here>ggggggggggggggggggggggggggggggggggggggggbbbbbbbggggggggggg
From the position of the cursor I would like to select all the green (g)
charcters untill a blue (b) appears, so I don't want the second range of g's
for now.
at the moment I solve this by looping over the content and check the color
of each char. On a colorchange I'll select the chars of the old color. This
is pretty slow though and it seems primitive.
There has to be a better way....
Thanks in advance,
rVo
Helmut Weber - 09 Feb 2006 10:20 GMT
Hi,
try:
Selection.SelectCurrentColor

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
rVo - 09 Feb 2006 12:44 GMT
Thanks (again) Helmut, that does it.
> Hi,
>
> try:
>
> Selection.SelectCurrentColor