M MillyD Aug 1, 2008 #1 How do I put an information box on an excel worksheet which pops up everytime you close a spreadsheet down
How do I put an information box on an excel worksheet which pops up everytime you close a spreadsheet down
D DS-NTE Aug 1, 2008 #2 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
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 Aug 1, 2008 #3 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 Click to expand...
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 Click to expand...