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

set focus to the TO textbox in a mail message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 23rd 06, 08:30 PM posted to microsoft.public.outlook.program_vba
rub
external usenet poster
 
Posts: 4
Default set focus to the TO textbox in a mail message

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

  #2  
Old November 24th 06, 06:23 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default set focus to the TO textbox in a mail message



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?...0&cmd=showitem

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

  #3  
Old November 24th 06, 04:24 PM posted to microsoft.public.outlook.program_vba
rub
external usenet poster
 
Posts: 4
Default set focus to the TO textbox in a mail message

Thank much.
I will read it over.


Michael Bauer [MVP - Outlook] wrote:
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?...0&cmd=showitem

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


 




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
Allow on Numbers in a Textbox nabeyaki-udon Outlook - Using Forms 1 September 15th 06 08:57 PM
Textbox in forms Lorena Outlook - Using Forms 1 April 6th 06 11:19 PM
One more...let's focus! robert Outlook - Using Forms 3 March 3rd 06 06:07 PM
Outlook Add-In: msoControlEdit: Textbox loses text when losing focus Pieter Add-ins for Outlook 3 February 6th 06 02:37 PM
Outlook Add-In: msoControlEdit: Textbox loses text when losing focus Pieter Outlook and VBA 3 February 6th 06 02:37 PM


All times are GMT +1. The time now is 05:06 AM.


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.