#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Messages

Is there any way you can have a message so that it shows when hit the close
button - the message would ask a yes or no questions in a worksheet (Not the
usual save message)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Messages

I'm sure there is more to this question than you posted but..........

In Thisworkbook module.

Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox "Did you have a nutritious breakfast?"
End Sub

That code does nothing other than ask a question.

Maybe post some more details of what you want to occur?


Gord Dibben MS Excel MVP

On Fri, 25 Sep 2009 10:36:01 -0700, Link
wrote:

Is there any way you can have a message so that it shows when hit the close
button - the message would ask a yes or no questions in a worksheet (Not the
usual save message)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not getting messages in OE Biff Excel Worksheet Functions 2 November 1st 06 08:01 AM
Save messages ledzepe Excel Discussion (Misc queries) 1 August 3rd 06 09:14 PM
Error Messages Kathy Excel Discussion (Misc queries) 9 May 16th 06 03:01 PM
Msg.box -messages TUNGANA KURMA RAJU Excel Discussion (Misc queries) 4 January 6th 06 04:33 AM
Off Topic Messages Alan Excel Worksheet Functions 1 November 21st 04 10:00 PM


All times are GMT +1. The time now is 04:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"