Word ranges named

Posted on 2005-03-15
Medium Priority
Last Modified: 2011-04-14
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.
Question by:JonMny
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

gilbar earned 2000 total points
ID: 13547822
bookmarks is what i'd use. these will copy.  The only would be them trying to add a bookmark with that name, which would overwrite yours.  

Expert Comment

ID: 13594066
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.

Expert Comment

ID: 13735610
thanx for points!

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question