set focus to the TO textbox in a mail message

  • Thread starter Thread starter rub
  • Start date Start date
R

rub

I don't know whether I tampered with something but when I open a new
mail message the focus is not set to the TO: textbox or recipient. I
have written a macro to do that but upon opening I don't know how to
set focus to that textbox.

Any help would be greatly appreciated
 
You'd need some Win32 API functions, and you'd need to know the handle of
the window of that textbox. For exploring that a tool like Spy++ is very
useful.

Here's a sample that demonstrates how to set the focus to the Body of HTML
and text mails in OL 2000 and 2003 (no RTF and not tested for OL XP):

http://www.vboffice.net/sample.html?mnu=2&smp=20&cmd=showitem

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 23 Nov 2006 12:30:44 -0800 schrieb rub:
 
Thank much.
I will read it over.

You'd need some Win32 API functions, and you'd need to know the handle of
the window of that textbox. For exploring that a tool like Spy++ is very
useful.

Here's a sample that demonstrates how to set the focus to the Body of HTML
and text mails in OL 2000 and 2003 (no RTF and not tested for OL XP):

http://www.vboffice.net/sample.html?mnu=2&smp=20&cmd=showitem

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 23 Nov 2006 12:30:44 -0800 schrieb rub:
 
Back
Top