The code looks about right.
Is the last thing in your test document red text?
If you add this following line before myRange.Collapse, what is special about the selection when you step through the code?
myRange.Select
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|