Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

set focus to the TO textbox in a mail message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rub - 23 Nov 2006 20:30 GMT
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
Michael Bauer [MVP - Outlook] - 24 Nov 2006 06:23 GMT
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

Signature

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

Am 23 Nov 2006 12:30:44 -0800 schrieb 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
rub - 24 Nov 2006 16:24 GMT
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
[quoted text clipped - 18 lines]
> >
> > Any help would be greatly appreciated
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.