Thread: [Solved] Copy from a huge document
View Single Post
 
Old 09-09-2014, 06:22 PM
freepapermate freepapermate is offline Windows 8 Office 2007
Novice
 
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