Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 98 quitting options

Status
Not open for further replies.

Demirci

IS-IT--Management
Sep 13, 2000
4
FR
Hello
I would like to know if anybody knows, if it is possible for Outlook 98 to prompt like "are you sure you want to quit from Outlook" when the user tries to quit. Some times, when I close the programs from the upper right handside closing (x) button, by error, I also close outlook and since it does not ask for a confirmation, I have to load it again and this is a long process.

thanx and regards [sig]<p>Nuri Demirci Lopez<br><a href=mailto:NDemirci-Lopez@trane.com>NDemirci-Lopez@trane.com</a><br>[/sig]
 

Have you tried using the Application.close event handler?

:-Q [sig][/sig]
 
No I did not. I am a simple outlook user. How can I use the handle ??

regards [sig]<p>Nuri Demirci Lopez<br><a href=mailto:NDemirci-Lopez@trane.com>NDemirci-Lopez@trane.com</a><br>[/sig]
 
Try the following code... I've not tried it but it can't be far off..

Dim WithEvents myOlApp As Outlook.Application

Sub Initialize_handler()
Set myOlApp = CreateObject(&quot;Outlook.application&quot;)
End Sub

Private Sub myOlApp_Quit()

lngReply = MsgBox(&quot;Do you really want to quit Outlook?&quot;,vbYesNo,&quot;Close Confirmation&quot;)

Need some code in here to either create anothe instance of Outlook or stop the current one closing... Not sure how to do this yet.
End Sub


I hope this helps..
Unsure as to where to place code as I'm fairly new to Outlook development. Sorry that I can't help you further but let me know if you have any luck.
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top