Show MS Exchange "Out-Of-Office Assistant"...

  • Thread starter Thread starter Stefan Uhlemann
  • Start date Start date
S

Stefan Uhlemann

Hi,

is it possible to bring up the "Out-Of-Office Assistant" from my com addin?
The only way i know is to send the keys... Is there another way?

Thanks

Stefan
 
Simulate a click on the menu item:

set Btn = Application.ActiveExplorer.CommandBars.FindControl(1, 5621)
if Not (Btn Is Nothing) Then
Btn.Execute
End If


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks alot,

btw another question....

Is there a way to find out which Number the Build-In Dialogs have?
I mean where can i get the Information that the Control for the
Out-Of-Office-Assistent has the ControlID 5621? ;)

Stefan

---
 
If you don't want to write your own code to recurse the Explorer.CommandBars
and Inspector.CommandBars collections, you can use either the CommandBars
Browser or Outlook Spy tools listed at
http://www.outlookcode.com/d/vb.htm#tools


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top