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
 
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
Diane Poremsky Test 2 Using Outlook 0
Y Disable Microsoft Outlook Test Message Using Outlook 4
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
J Outlook 365 Add keywords from Listbox to the message body where cursor is placed Outlook VBA and Custom Forms 0
Witzker Outlook 2019 Macro to check Cursor & Focus position Outlook VBA and Custom Forms 8
Witzker Set Cursor & Focus from any field to the body of a user Contact form in OL 2019 Outlook VBA and Custom Forms 1
Witzker Place cursor at opening, a user defined OL contact form 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
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
H Copying email address(es) in body of email and pasting in To field Outlook VBA and Custom Forms 1
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 2
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
S Combination Field (Date Format) Outlook VBA and Custom Forms 0
Witzker Add a text line at the end of the note field in all selected Contacts Outlook VBA and Custom Forms 7
M copy field value to custom field Outlook VBA and Custom Forms 0
J images on note field display fraction of size Using Outlook 5
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

Similar threads

Back
Top