A family of Microsoft word processing software products for creating web, email, and print documents.
You must use
.MatchWildcards:=True
since the search string contains a wildcard *.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
this macro no longer works. i swear it was working a moment ago
Sub DeleteBetween()
With ActiveDocument.Content.Find
.Text = "[*]"
.Replacement.Text = ""
.ClearFormatting
.Replacement.ClearFormatting
.MatchWildcards = False
.Execute Replace:=wdReplaceAll
End With
End Sub
A family of Microsoft word processing software products for creating web, email, and print documents.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
You must use
.MatchWildcards:=True
since the search string contains a wildcard *.
I tried that and nothing happened. this time when i tried it it worked. thanks