extract portion of word document

0

0kevin0

Anyone knows a way to easily extract multiple sections from a word document
automatically? I need to writing 3 specifications that are 70% common. I
hope that I can write one common specification document that includes
everything and then somehow extract individual specification from it. Is
there a way to tag a section of a word document and then do some kind of
sorting according to the tag? Does XML format provide a way?

Thanks for help,

Kevin
 
G

Greg

Write your common specs document and then bookmark the individual
specifications. Use short bookmark names and save the file with a
short name.

In your customized spec documents, use InsertText fields. See
InsertText Field in Word help.
 
0

0kevin0

Thanks Greg. I didn't quite follow what you mean. I am not a advanced Word
user or a programmer.

Let's say I have 4 sections in my common document. My user-1 spec uses
section 1 and 2. My user-2 spec uses section 1, 3 and 4. My user-3 uses
section 2 and 3.

With your suggestion, I will need to bookmark section-1 with user-1 and
user-2, section-2 with user-1,2,3, and so on. I tried this but didn't see
anything happening. Or perhaps what happened is not visible.

Now how do I use InsertText Field to extract individual user spec, say user-2?
 
G

Greg

Kevin.

Here is simple example.

Open a new document.

Type:

Section 1: this spec

Section 2: That spec

Section 3: Your spec

Section 4: My spec


Select the section 1 text and bookmark it "Sect1" (without the quotes),
repeat for sections 2, 3 and 4.

Save the document as C:\SourceDoc.doc


Open a new document. We will call it your user-3.


Use CTRL+F9 to enter a pair of field delimiters.

Inside the delimiters, type exactly as shown: INCLUDETEXT
"C\\SourceDoc" "Sect1"

Right click in the field and select "Update field" then right click
and select "Toggle field code"

Bob's your uncle.

HTH
 

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