PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming How to programmatically catch selected text?

Reply

How to programmatically catch selected text?

 
Thread Tools Rate Thread
Old 07-07-2003, 01:10 PM   #1
Luc Querton
Guest
 
Posts: n/a
Default How to programmatically catch selected text?


Greetings,

Assume some text is manually selected (highlighted) in the preview pane, is
there any programmatic way to catch it to assign it in order to a variable?

If not, is it at all possible in an "ActiveExplorer" or "Inspector" object?

Thanks for your guidance,
Luc


  Reply With Quote
Old 07-07-2003, 02:32 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: How to programmatically catch selected text?

If text is selected in an open item and you are using WordMail then
you can see what's selected by using the Word object model on that
open document. Otherwise you cannot tell what text is selected.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"Luc Querton" <lquerton@hotmail.com> wrote in message
news:ezIBbkIRDHA.2148@TK2MSFTNGP10.phx.gbl...
> Greetings,
>
> Assume some text is manually selected (highlighted) in the preview

pane, is
> there any programmatic way to catch it to assign it in order to a

variable?
>
> If not, is it at all possible in an "ActiveExplorer" or "Inspector"

object?
>
> Thanks for your guidance,
> Luc
>
>



  Reply With Quote
Old 07-07-2003, 02:47 PM   #3
Luc Querton
Guest
 
Posts: n/a
Default Re: How to programmatically catch selected text?

That is what I suspected. Thanks for your reply.
Luc


"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:%23mV5MTJRDHA.2592@TK2MSFTNGP10.phx.gbl...
> If text is selected in an open item and you are using WordMail then
> you can see what's selected by using the Word object model on that
> open document. Otherwise you cannot tell what text is selected.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>
>
> "Luc Querton" <lquerton@hotmail.com> wrote in message
> news:ezIBbkIRDHA.2148@TK2MSFTNGP10.phx.gbl...
> > Greetings,
> >
> > Assume some text is manually selected (highlighted) in the preview

> pane, is
> > there any programmatic way to catch it to assign it in order to a

> variable?
> >
> > If not, is it at all possible in an "ActiveExplorer" or "Inspector"

> object?
> >
> > Thanks for your guidance,
> > Luc
> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off