• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

remove a sentence

Hi, in my word file there are a lot of
Click here to get file: grep4.sh

Open in new window

The file names are different but the prefix are the same.
Click here to get file:

Open in new window

I want to remove them with VBA or tools.

Thanks for help.
  • 2
2 Solutions
You can remove them all with find/replace:

press ctrl+H
Paste the sentence to remove in the "find" box
leave bottom box blank
click "replace all" button.

What version of MSWord are you using?  MSWord supports using wildcards in Find/Replace, just check the box and use a asterick * to repalce the part that changes.  See attached image for example.
To match the whole sentence including the filename, you can also use wildcard characters:

While you are in the find/replace box, check the "Use Wildcards" checkbox.

Type "Click here to get file: ** " in the find box

follow same steps as above, and it should remove them. Before hitting "replace all", you can also hit "find next" to make sure it is finding the right sentences, as a double-check.

zhshqzycAuthor Commented:
Oop. I found that it is not working because of there is hyperlink in the file names.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now