Mavila
11-18-2019, 11:24 PM
Ever get that feeling after laying off coding for a while you forget how to do it?
Trying to Set myRange = text between two bookmarks. I've tried several variations of this and can't get it to work without throwing an error of one sort or another:
Set myRng = ActiveDocument.Range(Start:=ActiveDocument.Range.Bookmarks(bkmkTOCStartNm). start, End:=ActiveDocument.Range.Bookmarks(bkmkTOCEndNm).end)
Not sure what I'm doing wrong here.
Trying to Set myRange = text between two bookmarks. I've tried several variations of this and can't get it to work without throwing an error of one sort or another:
Set myRng = ActiveDocument.Range(Start:=ActiveDocument.Range.Bookmarks(bkmkTOCStartNm). start, End:=ActiveDocument.Range.Bookmarks(bkmkTOCEndNm).end)
Not sure what I'm doing wrong here.