Messages

L

Link

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)
 
G

Gord Dibben

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top