Test if cursor is in To... field

R

Rich007

Hi All,
Does anyone know of a way to test whether the cursor is positioned in the
To..., Cc..., Bcc...., Subject: or Introduction: fields when using Word to
send an e-mail?

I am really coming at this from Word rather than in Outlook.

There is no WdInformation constant that describes the selection being in one
of those fields. I don't appear to be able to set a range to any of those
fields.

Is there some way in Outlook's VBA that allows one to test if the cursor is
in the To... box?

Cheers
Rich
 
D

Dmitry Streblechenko

There is no way to do that short of using raw Windows API to figure out what
the active window is.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top