Solved

remove a sentence

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

746 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