Defining a Stopping rule

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
matthewrevie
Posts: 2
Joined: Wed Dec 05, 2007 8:56 pm

Defining a Stopping rule

Post by matthewrevie »

Hi,

Apologies if this has already been posted - have searched forum and cant find it. I would like to do the following.

Open a Word file
Find word “Unit�
Select everything in line beginning “Unit�
Find word “Load:�
Select everything in line beginning “Load�
Find word “Mills�
Select everything beginning with “Mills� until
underlined word beginning with “A“ to “H� and not followed by a space OR
underlined word beginning with “I� to “Z�.
The selection should not include the markers themselves.
All selected text is inserted into text file.
Repeat from Step 2.
When document is at EOF, repeat from Step 1 for 1000 word files.

Is TextPad capable of doing this and if so, can anyone point me in the right direction regarding how to do it.

Thanks in advance for anyone who can help.

Matthew
bveldkamp

Post by bveldkamp »

TextPad is a text editor. It's not possible to open a Word file in TP.
It's certainly possible to do this in Word using a VBA macro, the easiest way to do that is start by recording a new macro first, then change the code manually to make it more generic.
matthewrevie
Posts: 2
Joined: Wed Dec 05, 2007 8:56 pm

Post by matthewrevie »

Possibly I was mistaken about what TextPad could do. I thought it could search through word files and then extract small parts of many word files into a single text file. Is this not possible?

Thank you for taking the time out to answer.
bveldkamp

Post by bveldkamp »

No, just plain text files. Not the ones produced by MS-Word.
Post Reply