J
Janine
Below does not purge trailing space in a table:-
Fred Smith trailing space (no merge cells and anywhere in table rows)
What vba do tables require to clean up properly please?
Many thanks.
Sub Purge_Trailing_Space()
Dim s As String
With ActiveDocument
If Len(.Range) = 1 Then Exit Sub
s = .Characters.Last.Previous
While s = " " Or s = Chr(13) Or s = Chr(11)
.Characters.Last.Previous = ""
s = .Characters.Last.Previous
Wend
End With
End Sub
Fred Smith trailing space (no merge cells and anywhere in table rows)
What vba do tables require to clean up properly please?
Many thanks.
Sub Purge_Trailing_Space()
Dim s As String
With ActiveDocument
If Len(.Range) = 1 Then Exit Sub
s = .Characters.Last.Previous
While s = " " Or s = Chr(13) Or s = Chr(11)
.Characters.Last.Previous = ""
s = .Characters.Last.Previous
Wend
End With
End Sub