Thanks, I'll try what you suggest there. I know the Selection doesn't need to
be there - it is left over from previous version, and as you see I'm trying
to use Range, but haven't refined it all yet. The second piece is supposed to
remove spaces before ends of paragraphs, including (in particular) ends of
footnotes, where the end of footnote 'paragraph' mark seems to be impervious
to coding (hence the aim of selecting (or ranging) the previous character
and deleting it if it is a space. I dare say it's not elegant etc. - I'm not
that experienced. But in particular I want to ensure that moving through all
Stories is going to work, and this code won't move outside the main story at
all, which is baffling me.
Ah, now I see what I have done - very silly! I forgot to redefine the Range
as within the Story instead of the ActiveDocument. Now it works, with the
proper loop structure recommended previously.
> Thanks, I'll try what you suggest there. I know the Selection doesn't need to
> be there - it is left over from previous version, and as you see I'm trying
[quoted text clipped - 6 lines]
> Stories is going to work, and this code won't move outside the main story at
> all, which is baffling me.
Jezebel - 24 Jan 2005 02:50 GMT
Glad it's working. Are you aware you can do this with Find and Replace?
Search for: ^w^p and replace with ^p. Make sure the search direction is set
to ALL (otherwise Find looks only in the body of the document).
> Ah, now I see what I have done - very silly! I forgot to redefine the Range
> as within the Story instead of the ActiveDocument. Now it works, with the
[quoted text clipped - 10 lines]
> > Stories is going to work, and this code won't move outside the main story at
> > all, which is baffling me.