![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |