Solved

remove a sentence

Posted on 2011-03-23
4
463 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
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 …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now