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?
|