Solved

remove a sentence

Posted on 2011-03-23
4
478 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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 article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
Suggested Courses
Course of the Month5 days, 15 hours left to enroll

626 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