pop up box

M

MillyD

How do I put an information box on an excel worksheet which pops up
everytime you close a spreadsheet down
 
D

DS-NTE

If you want a pop-up before you close the workbook, try this

1)Open the WorkBook in Excel
2) Press Alt+F11
3) In the project explorer(Ctrl+R), Doubleclick ThisWorkbook
4) Copy paste the code below

Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox "Closing down"
End Sub
 
M

MillyD

Cheers


DS-NTE said:
If you want a pop-up before you close the workbook, try this

1)Open the WorkBook in Excel
2) Press Alt+F11
3) In the project explorer(Ctrl+R), Doubleclick ThisWorkbook
4) Copy paste the code below

Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox "Closing down"
End Sub
 

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