![]() |
#1
|
|||
|
|||
![]()
This code should remove text between [] inserted in bookmarks, the problem is that it's removing the 1st bookmark at the start of the document.
Any ideas on how to adjust this? Thanks. Code:
Sub Test() With ActiveDocument.Content.Find .Text = "\[*\]" .Replacement.Text = "" .ClearFormatting .Replacement.ClearFormatting .MatchWildcards = True .Execute Replace:=wdReplaceAll End With End Sub
__________________
Backup your original file before doing any modification. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jimmi6jjr | Word | 4 | 10-04-2022 09:33 PM |
![]() |
wrdy | Word | 2 | 08-03-2017 06:55 PM |
![]() |
barrage | Word | 1 | 12-16-2015 02:59 PM |
Microsoft Word macro to find text, select all text between brackets, and delete | helal1990 | Word VBA | 4 | 02-05-2015 03:52 PM |
![]() |
PeterPlys | Word VBA | 13 | 01-14-2015 06:41 AM |