The absence of anything is the reason for the error. If a group of things has only one item then you encounter an error if you are asked to go to the item before the first item.
I don't understand the point of the effort after the code provided in #22 of this thread. What are you trying to achieve that that macro didn't do?
The code you posted in #27 seeks to remove one of the spaces at the end of a paragraph but would need to be run multiple times if there was more than one space. And you would still need to avoid the error when the paragraph is empty.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|