![]() |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy webcontent to a document | elmnas | Word VBA | 1 | 07-15-2014 10:08 PM |
![]() |
Loretti | Word | 1 | 11-12-2012 03:35 PM |
![]() |
gmurphy | Word | 3 | 09-07-2011 04:28 AM |
![]() |
SpaceMuppet | Word | 7 | 05-04-2011 12:26 PM |
![]() |
dlawson | Word | 4 | 04-14-2009 12:22 PM |