![]() |
|
|
|
#1
|
|||
|
|||
|
If you just remove the linebreak after respond to a, you will be left with respond to aprototype. You need to add a space, yes?
Code:
Sub RemoveParaOrLineBreaks()
Dim oRng As Range, oFind As Range
Set oRng = Selection.Range
Set oFind = Selection.Range
With oFind.Find
.Text = "[^13^l]{1,}([a-z])"
.MatchWildcards = True
Do While .Execute
If oFind.InRange(oRng) Then
oFind.Text = Chr(32) & oFind.Characters.Last
End If
Loop
End With
lbl_Exit:
Set oRng = Nothing
Set oFind = Nothing
Exit Sub
End Sub
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Can't delete page break
|
John Holstein | Word | 5 | 04-01-2015 09:00 AM |
| Line break between en dash and number | 90-degree | Word | 1 | 01-14-2015 01:09 PM |
How can I remove line break from 4 dash's
|
nmss18 | Word | 2 | 09-11-2014 06:07 AM |
delete page break
|
seeker62 | Word | 3 | 07-22-2013 06:49 PM |
Delete Page Break using VBA
|
wordpunk | Word VBA | 1 | 07-03-2012 03:05 PM |