Hi Mark,
Seems to work fine for me (Word 2003)...
Maybe there's something special about your document, or the current paragraph?
Is the first branch entered at all?
Does this work...
If Selection.Type = wdSelectionIP Then
?
Regards,
Klaus
> The following code works in Word 2000, but when run in 2003 the
> first part of the 'If' statement doesn't work; that is, existing highlight
[quoted text clipped - 25 lines]
> Mark Tangard
> "Life is nothing if you're not obsessed." --John Waters
Mark Tangard - 31 Jan 2005 06:09 GMT
Hi Klaus,
Predictably, it works just fine today using either method!
Is testing Selection.Type = wdSelectionIP preferable (smarter/safer/etc) to
testing whether Selection.End and Selection.Start are the same? Besides being
more concise, I mean?
Thanks,
Mark
------------
Mark Tangard
"Life is nothing if you're not obsessed." --John Waters
> Hi Mark,
>
[quoted text clipped - 40 lines]
>>Mark Tangard
>>"Life is nothing if you're not obsessed." --John Waters
Klaus Linke - 31 Jan 2005 18:07 GMT
Let's hope it keeps working :-)
I suggested Selection.Type only because I was confounded, hoping it might turn
up something weird about the selection you were working on.
Regards,
Klaus
> Hi Klaus,
>
[quoted text clipped - 10 lines]
> Mark Tangard
> "Life is nothing if you're not obsessed." --John Waters