View Single Post
  #7  
Old December 6th 07, 05:38 AM posted to microsoft.public.outlook.program_vba
Peter R.[_2_]
external usenet poster
 
Posts: 7
Default Get selection into textstring

thanks a lot!

"Sue Mosher [MVP-Outlook]" wrote:

That's the easiest scenario to handle, because Word is always the email editor in Outlook 2007:

Set objOL = Outlook.Application
Set objDoc = objOL.ActiveInspector.WordEditor
Set objWord = objDoc.Application
Set objSel = objDoc.Windows(1).selection
MsgBox objSel.Text

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Peter R." wrote in message ...

It´s Outlook 2007, it´s a received message in the Inbox.

A piece of tekst marked in a opened email message.

How do I get a marked piece of text in a email into a string in my VBA ?



Ads