Text selected / right click event (Outlook 2007 VBA) -
i'm looking event that's raised when user selects text in preview pane of email. e.g. you're viewing email in preview pane , select text. didn't see in object reference effect, namespace large, seems there's object somewhere need, i'm not aware of.
overall, i'd see if selected text matches pattern , if so, insert sub-menu in right click menu (the 1 says copy, is, synonyms, translate..). appreciated too. believe commandbar "text", i'm unsure how go accessing via name.
outlook object model not expose preview pane @ all. can word's document object in preview pane using creative window searching , accessibility api.
if using redemption option, exposes safeexplorer object, has readingpane property. once have word.document object, can read document.application property , use application.windowselectionchange event. selected text can accessed using safeexplorer.readingpane.seltext property
. word.application can retrieved safeexplorer.readingpane.wordeditor.application
.
set sexplorer = createobject("redemption.safeexplorer") sexplorer.item = application.activeexplorer msgbox sexplorer.readingpane.seltext
Comments
Post a Comment