[AccessD] MS Word Highlight Problem

Robert robert at servicexp.com
Thu Mar 11 17:05:26 CST 2010


Could anyone give me some clues as to why this code does not work? Trying to
highlight a text string contained in a bookmark. No errors are thrown,
simply doesn't work?


            For Each myBookmark In objword.ActiveDocument.Bookmarks
              If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then
                 myBookmark.Range.HighlightColorIndex = wdDarkYellow
              End If
            Next myBookmark

WBR
Robert





More information about the AccessD mailing list