Test if cursor is in To... field

Status
Not open for further replies.
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)

-

"Rich007" <Rich007> wrote in message

news:FCC4438B-F662-421F-A201-90314EC83CBB@microsoft.com...
> 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Y Disable Microsoft Outlook Test Message Using Outlook 5
S SendFromAccount - Problem trying to test existing value in open email Outlook VBA and Custom Forms 2
Diane Poremsky test Using Outlook 2
M Change default "automatically test account settings when Next is clicked" Using Outlook 1
witzker HYPERLINK "mailto:test@test.com" in form body Using Outlook 21
A Outlook 2010 - Want to Have All Email Reply Forward as Rich Test Using Outlook 7
H Sending a test email to sender's own account. Outlook VBA and Custom Forms 3
M When I click “new message” in outlook, my cursor defaults to the body of the m Using Outlook 6
K Placing cursor over an email name it would show the name of the person Using Outlook 1
B Cursor location in email item? Outlook VBA and Custom Forms 2
F Insert date at cursor location Outlook VBA and Custom Forms 4
T current cursor position in the reply event Outlook VBA and Custom Forms 1
M copy field value to custom field Outlook VBA and Custom Forms 0
J images on note field display fraction of size Using Outlook 4
C Automatically Insert Recipient Name from To Field Outlook VBA and Custom Forms 4
J How to create a drop down user defined field that will appear on an inbox view Outlook VBA and Custom Forms 8
C Move or copy from field to field Outlook VBA and Custom Forms 0
O Filter-Query Builder-Description - what field name to use? Using Outlook 4
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
justicefriends How to set a flag to follow up using VBA - for addressee in TO field Outlook VBA and Custom Forms 11
N Contact Form Notes Field Touch vs Mouse Using Outlook 0
S CONTACT FIELD PRINT ORDER Outlook VBA and Custom Forms 1
V Checking for empty field Outlook VBA and Custom Forms 2
V Update new custom field Outlook VBA and Custom Forms 5
HappyDaddy007 "Size" on field chooser/column displaying incorrect value Using Outlook 3
A Is there an ID field you can use to pair a reply to the sent email? Outlook VBA and Custom Forms 4
H Information from user defined field into Excel Outlook VBA and Custom Forms 7
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
Terry Sullivan Sender's Name Doesn't Appear in the From Field on Outlook 365/IMAP Using Outlook 2
D Outlook Contacts Notes Field Photos to Smartphone Using Outlook 0
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
Terry Sullivan Sender Field Displays My E-Mail Address, Not My Name Using Outlook 1
S Create a clickable custom column field Outlook VBA and Custom Forms 0
B User defined field for messages with 'me' in the [To], [Cc] line Using Outlook 0
V Limiting text length in free text field Outlook VBA and Custom Forms 2
C Outlook 2016 Conditional Format for User Defined Field Using Outlook 1
C Copy Outlook contact field value to another field Outlook VBA and Custom Forms 1
A new labeled phone field Using Outlook 4
V Making a Date field mandatory in outlook form Outlook VBA and Custom Forms 2
B Outlook Business Contact Manager with SQL to Excel, User Defined Fields in BCM don't sync in SQL. Can I use VBA code to copy 1 field to another? BCM (Business Contact Manager) 0
BretAB Is it possible to add a lookup field to a Message form? Outlook VBA and Custom Forms 4
N Exporting IM Address field Using Outlook 2
M Using field names to capture a data element Using Outlook 0
J How to restore field no longer visible in field chooser? Using Outlook 1
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
R What's supposed to appear when just clicking into the search field? Using Outlook 7
A Missing context menu on Location field Using Outlook 2
G Entered data in custom field goes in card and does not stay in list view Outlook VBA and Custom Forms 1
C Changed By field not displaying individual user's name in O365 Shared Mailbox Using Outlook 9
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2

Similar threads

Top