delete contents between repeted words

B

B

Hi..
Maybe this task require programming skills.
If you have a document with 1000 pages.
Paragraph Format is
Aa.
Ba.
Ca.
????????
Aa.
Ba.
Ca.

Task is delete any contents between Ca.and Aa.

If I want to automate this for the entire document what should I do, any
suggestions?
 
T

Tony Jollans

Depends exactly what "Ca" and "Aa" are - Find and Replace *might* do it. Can
you give a bit more detail please?
 
H

Helmut Weber

Hi B,
Paragraph Format is
Aa.
Ba.
Ca.
????????
Aa.
Ba.
Ca.

Task is delete any contents between Ca.and Aa.

sounds feasable. If I only knew,
what a paragraph format "Aa.", "Ba." etc. would be.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
B

B

Thanks for your prompt reply.

I guess that was a bad example ^^ sorry..
I wish there is a function like "find" "replace all" for this one .
Format goes like this...

Rose : The rose is red,
The violet blue,
The gillyflower sweet,

Flower: > And so are you.
These are the words
Superman is strong.(content varies in length)<

Yellow: You bade me say
For a pair of new gloves
On Easter day

I want to delete > < marked area.
Flower: Yellow: are never appear in > < marked area.

I wish I can post the picture.
Again Thanks.
 
B

B

Thanks for your prompt reply.

I guess that was a bad example ^^ sorry..
I wish there is a function like "find" "replace all" for this one .
Format goes like this...

Rose : The rose is red,
The violet blue,
The gillyflower sweet,

Flower: > And so are you.
These are the words
Superman is strong.(content varies in length)<

Yellow: You bade me say
For a pair of new gloves
On Easter day

I want to delete > < marked area.
Flower: Yellow: are never appear in > < marked area.

I wish I can post the picture.
Again Thanks.
 
T

Tony Jollans

Something like this ...

Find ==> (Flower)?{1,}(Yellow)
Replace ==> \1^p\2
Check Use Wildcards
 
B

B

I've tried that..but no luck...
Guess I have to do it by manual.
Thanks for your help. ^^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top