Finding Substrings and copy them to new document

J

jgambke

Hi!

I have a document with "Todo"-Tags, which look like that: @TODO[]. Inside
the brackets is a description of what needs to be done.
There are 3 things I'd like to do:
1.) I'd like to find all Todo-Tags in my document and
2.) copy the descriptions into a table in a new document.
3.) I'd like to find out the chapter/ subchapter in which a Todo-Tag and
it's description was found and add that information to the table.

I'm a vba novice and searched (and tried and failed) for solutions for the
past week - I'm getting truly desperate.

If anyone can help - I appreciate.

Jule
 
J

Jean-Guy Marcil

jgambke was telling us:
jgambke nous racontait que :
Hi!

I have a document with "Todo"-Tags, which look like that: @TODO[].
Inside the brackets is a description of what needs to be done.
There are 3 things I'd like to do:
1.) I'd like to find all Todo-Tags in my document and
2.) copy the descriptions into a table in a new document.
3.) I'd like to find out the chapter/ subchapter in which a Todo-Tag
and it's description was found and add that information to the table.

"its description"
[ Sorry, couldn't resist, this is a pet peeve of mine... :) ]
I'm a vba novice and searched (and tried and failed) for solutions

This is not a novice task!
for the past week - I'm getting truly desperate.

First, you have to tell us how your chapters/sub-chapters are defined. How
will the code tell where one begins?
Also, do you want chapters *or* sub-chapters information? Or both?


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

jgambke

Hi Jean-Guy!
"its description"
[ Sorry, couldn't resist, this is a pet peeve of mine... :) ]

Yup, everyone needs one of those :)
This is not a novice task!

Thank God. That makes me feel a lot better as I started feeling stupid.
First, you have to tell us how your chapters/sub-chapters are defined. How
will the code tell where one begins?

Chapters and Subchapters are defined using the word standard "Header 1",
"Header 2" etc. formats.
Also, do you want chapters *or* sub-chapters information? Or both?

Quite honestly, I'm not sure yet which would be more informative. I guess
for now I'd settle for sub-chapter information.

Thanks for taking interest!

Jule
 

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