Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2014, 05:11 AM
gmayor's Avatar
gmayor gmayor is offline Copy from a huge document Windows 7 64bit Copy from a huge document Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default


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
Reply With Quote
  #2  
Old 09-09-2014, 03:23 PM
freepapermate freepapermate is offline Copy from a huge document Windows 8 Copy from a huge document Office 2007
Novice
Copy from a huge document
 
Join Date: Sep 2014
Posts: 7
freepapermate is on a distinguished road
Default

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
Attached Files
File Type: docx Test document.docx (10.7 KB, 16 views)
Reply With Quote
  #3  
Old 09-09-2014, 06:22 PM
freepapermate freepapermate is offline Copy from a huge document Windows 8 Copy from a huge document Office 2007
Novice
Copy from a huge document
 
Join Date: Sep 2014
Posts: 7
freepapermate is on a distinguished road
Default

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?
Reply With Quote
Reply

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 from a huge document Copy only Tables of a Document Loretti Word 1 11-12-2012 03:35 PM
Copy from a huge document Copy from one word document to another no identical gmurphy Word 3 09-07-2011 04:28 AM
Copy from a huge document How to get rid of Huge Gaps in my 300 pages Document? SpaceMuppet Word 7 05-04-2011 12:26 PM
Copy from a huge document WORD 2003 Need help splitting a HUGE Document dlawson Word 4 04-14-2009 12:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft