![]() |
|
|
|
#1
|
||||
|
||||
|
If your document doesn't have section breaks at each bookmark, it might be simpler just to add them. That could be done with a macro. Then Paul's suggestion to copy the section is easy enough to implement. Again a bit more information would be required.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#2
|
|||
|
|||
|
Hi,
Thanks for your replies and willingness to help. I have attached a sample document for you here. Since the document that I am working with is huge and is a bit confidential I can't share the exact same document but I have made a sample and am attaching it here. Please note that this test document only has 5 headings (or sections) but the real document has 100 such headings (or sections). To review here is what I am looking for and I am putting the attached text document in perspective: 1. I open the attached document. 2. I am asked to just copy the text under "Heading 3" which I can then paste anywhere. 3. I should be able to able to copy whatever text is under "Heading 3" without having to scroll down to "heading 3", selecting the text and hitting control+C. If I can copy the text from the first index page itself then it would be great without having to scroll down. How can I do that if possible? I can add section breaks if needed which is fine. Thanks |
|
#3
|
|||
|
|||
|
I was able to get the code to select and copy between two known bookmarks which works for me. But How to do this with unknown bookmark.
I used the below code: Dim orng As Range Set orng = ActiveDocument.Range orng.Start = orng.Bookmarks("BM1").Range.End orng.End = orng.Bookmarks("BM2").Range.Start orng.Select How can I modify the above code so that "BM1" is what I from index? |
|
| Tags |
| copy paste, word 2007 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy webcontent to a document | elmnas | Word VBA | 1 | 07-15-2014 10:08 PM |
Copy only Tables of a Document
|
Loretti | Word | 1 | 11-12-2012 03:35 PM |
Copy from one word document to another no identical
|
gmurphy | Word | 3 | 09-07-2011 04:28 AM |
How to get rid of Huge Gaps in my 300 pages Document?
|
SpaceMuppet | Word | 7 | 05-04-2011 12:26 PM |
WORD 2003 Need help splitting a HUGE Document
|
dlawson | Word | 4 | 04-14-2009 12:22 PM |