Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to create a pop-up reminder which appears every time I go to
close Excel - reminding me to do xyz within the sheet - any idea how I go about this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
With your excel file open: Go to Tools, Macros, Visual Basic Editor You will see your file name in the left hand window, with sheet names and ThisWorkBook below it. Double click ThisWorkBook Paste in this code Private Sub Workbook_BeforeClose(Cancel As Boolean) Dim Response As VbMsgBoxResult Response = MsgBox("Did you do xyz?", vbYesNo, "Help saving your file") If Response = vbNo Then Cancel = True End Sub Change as required. regards Paul On Jul 2, 11:14*am, Gareth Wretham wrote: I want to create a pop-up reminder which appears every time I go to close Excel - reminding me to do xyz within the sheet - any idea how I go about this? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excellent - thanks Paul.
On Jul 2, 11:55*am, wrote: Hi With your excel file open: Go to Tools, Macros, Visual Basic Editor You will see your file name in the left hand window, with sheet names and ThisWorkBook below it. Double click ThisWorkBook Paste in this code Private Sub Workbook_BeforeClose(Cancel As Boolean) Dim Response As VbMsgBoxResult Response = MsgBox("Did you do xyz?", vbYesNo, "Help saving your file") If Response = vbNo Then Cancel = True End Sub Change as required. regards Paul On Jul 2, 11:14*am, Gareth Wretham wrote: I want to create a pop-up reminder which appears every time I go to close Excel - reminding me to do xyz within the sheet - any idea how I go about this?- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how cani create a pop up reminder when closing excel? | Excel Discussion (Misc queries) | |||
Closing workbooks w/o closing Excel | Excel Discussion (Misc queries) | |||
Turn Off save prompt, reminder when closing modified WORD... | New Users to Excel | |||
Closing VB triggers closing Excel | Excel Programming | |||
closing excel after closing a workbook | Excel Programming |