Hello,

Beginner here! I'm trying to use a macro in Word to find a Legacy checkbox (wdFieldFormCheckBox) with particular text beside it, in order to delete both the checkbox and the text. I was using the following to find text and replace it with nothing, but I don't know how to include the checkbox in the "Find" function. Thanks for your help in advance!

Sub Test()


With Selection.Find


.ClearFormatting


.Replacement.ClearFormatting


.Text = "Protocol"


.Replacement.Text = ""


.Forward = True


.Wrap = wdFindContinue


.Format = False


.MatchCase = True


.MatchWholeWord = False


.MatchWildcards = False


.MatchSoundsLike = False


.MatchAllWordForms = False


.Execute Replace:=wdReplaceAll


End With