How Do I determing what text is currently selected in message body

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know how to determine if there is an email open and if so how to grab all
text in the body but I'm interested in determine what subset of the body text
(if any) might have been highlighted. The intent is similar to spell check -
the function of the macro should work on selected text first.
 
Try checking whether ActiveInspector = Nothing; if so, no e-mail is open.
However, unless you use Word as your e-mail editor, Outlook 2007, or the
Redemption programming library (http://www.dimastr.com) you cannot tell what
text is selected in the message body.
 
Thanks. I knew how to check if an email was open or not before attempting to
access the message. I don't use word as my email editor but I will check out
the dimastr link. What I want is clearly possible because the spell checker
works this way. I just need to figure out how to get at this functionality.
 
Keep in mind that not all of the functionality that you see in Outlook is
available to control or access programmatically. If Redemption can't do what
the Outlook Object Model or CDO can do, it usually can't be done.
Configuration settings are a different story though, because those are in
many places (profile, registry, file system).

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
 
Initially I could not find the answer but I emailed Dmitri and he got back to
me right away - the seltext property of redemption safeinspector.
 
Back
Top