Hi,
can't remember your real name.
Did you ever reveal it?
Would be much nicer.
You are encountering problems with the end-of-document mark,
which can't be replaced. A relict from former times,
when there was a diamond in DOS-Word to indicate the doc's end.
Though there isn't an end-of-doc mark anymore,
the last paragraph mark in a doc is something very special.
You would have to purge the doc's end from repeated ^p^p before.
See:
http://groups.google.de/group/microsoft.public.word.vba.general/browse_frm/threa
d/6aa9f8ea2fe34dde/9e7e5b6fdd460cde?lnk=st&q=purgedocend+group%3Amicrosoft.publi
c.*+author%3AHelmut+author%3AWeber&rnum=1&hl=de#9e7e5b6fdd460cde
One line, of course.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
MarcoPolo - 04 Feb 2006 13:39 GMT
My name is really Marco Polo (like my famous "ancestor" lol) and i'm expert
of mainframe
i'm trying to delete all the double end of paragraph and you're right i find
error at end of doc
i tried the script of the link but isSpace is not recgnized
So what can i do?
Liebe grüsse aus Italien :-)
I looked ta tour
> Hi,
>
[quoted text clipped - 16 lines]
>
> One line, of course.
Helmut Weber - 04 Feb 2006 13:49 GMT
Hi Marco,
Public Sub DeleteDocEnd()
Dim s As String
With ActiveDocument
If Len(.Range) = 1 Then Exit Sub
s = .Characters.Last.Previous
While s = chr(13)
.Characters.Last.Previous = ""
s = .Characters.Last.Previous
Wend
End With
End Sub
HTH

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
MarcoPolo - 04 Feb 2006 14:05 GMT
I found the isSpace function, ididnt read it all sorry
IT WORKS NOW DANKE SCHÖN !!!!!!!!!!!!!!!!
> Hi Marco,
>
[quoted text clipped - 11 lines]
>
> HTH