A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Test if cursor is in To... field



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 9th 09, 12:53 AM posted to microsoft.public.outlook.program_vba
Rich007
external usenet poster
 
Posts: 4
Default Test if cursor is in To... field

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
Ads
  #2  
Old October 9th 09, 06:51 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Test if cursor is in To... field

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
-
"Rich007" wrote in message
...
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i get rid of a blinking cursor? Newbie in AZ Outlook - General Queries 2 July 17th 09 02:25 PM
How can I force New Message cursor to start in bcc field Sawdust Outlook and VBA 2 November 20th 08 03:43 PM
cursor chili gal Outlook - Installation 1 July 31st 08 09:36 AM
Capturing cursor window Jon Rowlan Outlook and VBA 2 May 16th 07 07:37 AM
Cursor Jumps to To: Field when replying R Outlook - General Queries 0 December 21st 06 02:19 PM


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.