Determining if a user has selected text in Microsoft Outlook
Posted on 2004-04-26
Is there a way to determine programmatically if a user has selected text in an Outlook message (i.e. email)?
I need to copy the text from an Outlook message (email). Using the "SendKeys" command for "Select All" and "Copy", I can capture ALL text. But if the user has selected or highlighted just part of the message, I only want to copy that portion. If I can determine first if there is selected text, then I could omit the "Select All" command and only use the "Copy" command.
Is there something, which can be checked using VB, that indicates if the user has selected part of the text?