![]() |
|
#2
|
|||
|
|||
|
Your procedure seems to work here. You could try to simplifiy:
Code:
Sub COPYPAR()
Dim oPar As Paragraph, oRng As Range
Set oPar = Selection.Paragraphs(1)
Set oRng = oPar.Range
With oRng.Find
.ClearFormatting
.Text = "="
If .Execute Then
oRng.Start = oPar.Range.Start
oPar.Range.InsertAfter oRng.FormattedText & vbCr
End If
End With
lbl_Exit:
Exit Sub
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro/VBA to copy text paragraph and insert as new row in summary table, with RAG | l0zzie88 | Word VBA | 2 | 01-18-2024 03:42 PM |
| Copy the entire paragraph in wildcards | asderam | Word VBA | 0 | 01-28-2021 05:54 PM |
Macro to search for a particular word, copy the entire paragraph to a new document
|
Productivity | Word VBA | 2 | 10-25-2019 06:40 AM |
Direct (copy-paste) reference from another paragraph (CITATION)
|
WordNoobx | Word | 6 | 05-15-2018 05:46 AM |
| Copy text to new document based on paragraph numbering | mike.mm | Word VBA | 7 | 11-22-2016 06:14 AM |