Link to home
Start Free TrialLog in
Avatar of JonMny
JonMny

asked on

Word ranges named

I have a word document that has 4 section breaks in it to separate information. I need to copy this data to another word document. What I need to know is how can I identify the sections so if a user add his own breaks I can still locate the correct one.

I am currently using the index property but that does not work if another section is added.
ASKER CERTIFIED SOLUTION
Avatar of gilbar
gilbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There are a couple of things that come to mind.
1.  You could add a custom "style" to the document. When copying to another document (VBA driven?) only choose the document ranges where the style is your custom style.

2.  Construct the original documents with subdocuments - one per section that you want to copy. In fact, you would not have to copy, rather, construct the destination document from the subdocuments.
Avatar of gilbar
gilbar

thanx for points!