Thread: Out of office
View Single Post
  #2  
Old August 9th 06, 03:25 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Out of office

You can launch any dialog that's in the menus by getting the
CommandBarControl that represents that menu item and calling its Execute
method. There are code samples for doing that for various menu items at
www.outlookcode.com.

Once the dialog is opened you usually have no way of accessing it further,
influencing it or getting its return values. About all you can do once a
dialog is opened is to use something like SendKeys to send a keystroke and
hope the dialog has focus so it receives the sent keystroke, a real hack.

Other than that it's off to PostMessage and the Win32 API's.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"MarkN" wrote in message
...
Thanks for getting back to me Ken. Can I trouble you with one more
question:

Is it possible to launch the Out of Office dialog from a custom form?
--
Thanks,
MarkN


Ads