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

Out of office



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 8th 06, 11:17 AM posted to microsoft.public.outlook.program_vba
MarkN
external usenet poster
 
Posts: 10
Default Out of office

This is a bit of a re-post.

Is it possible to display a form or message box when I click the OK button
on the Out of Office Assistant dialog.
--
Thanks,
MarkN
Ads
  #2  
Old August 8th 06, 03:06 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Out of office

Not that I know of, unless you hook all Windows messages to that dialog and
do it that way, using the Win32 API's. Of course you'd also have to find
that dialog when its window was opened, so that's another hook.

--
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
...
This is a bit of a re-post.

Is it possible to display a form or message box when I click the OK button
on the Out of Office Assistant dialog.
--
Thanks,
MarkN


  #3  
Old August 9th 06, 01:35 AM posted to microsoft.public.outlook.program_vba
MarkN
external usenet poster
 
Posts: 10
Default Out of office

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


"Ken Slovak - [MVP - Outlook]" wrote:

Not that I know of, unless you hook all Windows messages to that dialog and
do it that way, using the Win32 API's. Of course you'd also have to find
that dialog when its window was opened, so that's another hook.

--
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
...
This is a bit of a re-post.

Is it possible to display a form or message box when I click the OK button
on the Out of Office Assistant dialog.
--
Thanks,
MarkN



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


  #5  
Old August 10th 06, 01:54 AM posted to microsoft.public.outlook.program_vba
MarkN
external usenet poster
 
Posts: 10
Default Out of office

Thanks again Ken,

I am an enthuastic amateur who is able to find bits of code and modifies
them to requirements, so don't worry about suggesting methods you describe as
"real hacks" as this is all I know how to do.
--
Thanks,
MarkN


"Ken Slovak - [MVP - Outlook]" wrote:

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



 




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
Fix asking for Office 2000 CD after office 2003 Upgrade Andrew Doyle Outlook - Installation 0 July 7th 06 02:06 PM
Launching Office 2007 components gets Office 2003 set up P Cause Outlook - Installation 0 July 1st 06 01:46 PM
Installed Ms Office, Ms Office outlook will not install- existing paul Outlook - Installation 3 March 13th 06 09:31 PM
Office 2003 AND Office XP - aka Office 2002 rrose selavy Outlook - General Queries 3 January 14th 06 11:14 AM
How clean is uninstall of Office 2003 (to revert to Office 2002)? Vanguard Outlook - General Queries 1 January 14th 06 07:51 AM


All times are GMT +1. The time now is 07:31 PM.


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.