Solved

remove a sentence

Posted on 2011-03-23
4
471 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:zhshqzyc
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
McOz earned 63 total points
ID: 35200839
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.

Done!
0
 
LVL 6

Assisted Solution

by:HyperBPP
HyperBPP earned 62 total points
ID: 35200880
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.
wordWildcardReplace.bmp
0
 
LVL 9

Expert Comment

by:McOz
ID: 35200926
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.

Cheers
0
 

Author Comment

by:zhshqzyc
ID: 35201069
Oop. I found that it is not working because of there is hyperlink in the file names.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question