If ActiveDocument.Bookmarks.Exists("temp") = True Then Set myBookmark = ActiveDocument.Bookmarks("temp") If myBookmark.StoryType = wpsMainTextStory _ Then myBookmark.Select End If