![]() |
|
#1
|
|||
|
|||
|
I need to remove all the text between two keywords. So far I have been using this code:
Code:
With Selection
.HomeKey Unit:=wdStory
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "START_KEYWORD(*)END_KEYWORD"
.MatchWildcards = True
.Replacement.Text = ""
.Execute Replace:=wdReplaceAll
End With
End With
Code:
.Text = "START_KEYWORD^p(*)END_KEYWORD" Can someone help me, please? Alex |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
best way to use search/replace wildcards in this scenario?
|
dylansmith | PowerPoint | 3 | 03-04-2023 08:55 PM |
Search and replace wildcards
|
eduzs | Word VBA | 2 | 06-29-2019 03:01 AM |
Need Search and Replace Help w Wildcards
|
Oberstfunster | Word | 2 | 12-06-2018 09:28 AM |
| Wildcards used for Search and Replace | ChrisRick | Word | 2 | 03-09-2017 05:01 AM |
| Any wildcards search and replace in Powerpoint 2010? | tinfanide | PowerPoint | 0 | 09-10-2011 02:17 AM |