Hi Robert,
This should do it. It gets round the end-of-line problem by using
non-breaking spaces.
Dim blunder As Range
For Each blunder In ActiveDocument.SpellingErrors
With blunder
.Font.UnderlineColor = wdColorRed
.Font.Underline = wdUnderlineWavy
numchars = .Characters.Count
.Collapse wdCollapseEnd
.Text = String(numchars * 2.5, Chr$(160)) & " "
.Font.UnderlineColor = wdColorBlack
.Font.Underline = wdUnderlineSingle
End With
i = i + 1 ' counter: total no of errors.
Next blunder
--
Enjoy,
Tony
> I forgot to mention that, with the present code, if the "manuscript"
> line extends to the end of the line of text, then none of it is
> displayed and there is nowhere for the correction to be written.
>
> Sorry about that,
> Robert
Robert - 29 Oct 2005 18:32 GMT
Hello Tony,
Thanks a lot for your kind and speedy response.
Your coding works perfectly and has solved all the difficulties. Thank
you also for "tidying it up"; it looks more like the work of art that
good coding should.
Now I can get on with the rest of this project for my students.
Renewed thanks,
Robert.
Tony Jollans - 29 Oct 2005 19:12 GMT
My pleasure!
--
Enjoy,
Tony
> Hello Tony,
> Thanks a lot for your kind and speedy response.
[quoted text clipped - 6 lines]
> Renewed thanks,
> Robert.