If it's Word you can get the Document object and get the cursor position
using Word's object model. Inspector.WordEditor is the Document object.
Otherwise I believe your only real recourse would be to use methods from the
Redemption 3rd party library (
www.dimastr.com/redemption).
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Mike" wrote in message
...
Is it possible to select all the text wherever the curser may be
without actually knowing where the cursor is?
I need to write an Outlook add-in that does some processing based on
the contact field that the cursor is sitting on.
In other words the user places the curser into a contact field and
then clicks a toolbar button. I don't think the Outlook object model
gives me any idea which field has the cursor. Is there a way to trap a
click event in standard contact fields?
As a last resort I may have the user copy the text and I'll process
the clipboard, but having it a little more automated is desirable from
the user point of view.
Thanks
-mike