Try this function, it is a Start.
Function GetTextOnlyExample(intParagraphNumber As Integer) As Variant
' This procedure illustrates how to return all the text, but not the
' paragraph mark, contained in a paragraph of the active document.
' To easily see the difference between a range that includes the
' paragraph mark and one that does not, un-comment the commented code
' in the With...End With statement in this procedure. When the code
' hits a Stop statement, view your document, and compare how the selections
' differ.
Dim rngParaText As Range
Dim strTemp As String
' Make sure that intParagraphNumber is <= to the number of paragraphs
' in the document.
If intParagraphNumber > ActiveDocument.Paragraphs.Count Then
GetTextOnlyExample = Null
Exit Function
End If
Set rngParaText = ActiveDocument.Paragraphs(intParagraphNumber).Range
With rngParaText
.SetRange rngParaText.Start, rngParaText.Start + rngParaText.Characters.Count - 1
GetTextOnlyExample = .Text
End With
End Function Best Regards
---
JoaoTL
mail@jtl.co.pt
My MS Access Site: