View Single Post
 
Old 05-06-2021, 07:41 AM
PassengerBird PassengerBird is offline Windows 10 Office 2013
Novice
 
Join Date: May 2021
Posts: 5
PassengerBird is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
This is a trivial undertaking. What have you tried?
thanks for your replay @macropod, I really appreciate that, what I have tried is very trivial like me.
Code:
    Selection.Find.ClearFormatting
    With Selection.Find
        .Text = "the VBA"
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindContinue
        Do While Selection.Find.Execute
            Selection.ExtendMode = True
        Loop
    End With
for sure this doesn't work, but if it works (with some little help from you) it will be a base for what I really want to do.