![]() |
|
#2
|
|||
|
|||
|
Hyperlink is a character style so I don't really know why you would have applied it to the paragraph marks in the first place:
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = "^p"
.Style = "Hyperlink"
While .Execute
oRng.Select
Selection.ClearCharacterAllFormatting
oRng.Collapse wdCollapseEnd
Wend
End With
lbl_Exit:
Exit Sub
End Sub
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Remove paragraph marks in Excel from Word-sourced text
|
Peterson | Excel | 6 | 08-18-2020 11:36 PM |
| Help me, remove the marks occur at begin and last paragraph | ngocanhwdn | Word | 6 | 06-25-2019 07:57 AM |
Paragraph marks appear suddently
|
leonardevens | Word | 1 | 07-13-2015 12:14 PM |
| Finding Paragraph Marks | BZee | Word | 4 | 02-14-2015 02:12 PM |
Hide paragraph format marks
|
Cara | Word | 2 | 04-07-2011 10:26 AM |