Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to create a pop up box simular to the one that appears when you
are closing your document and are asked to save. Is there a function to allow you to create your own pop up window and questions? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Create an event handler for Before_Close event in workbook's code.
Show an user-defined Userform HTH -- AP "Bernadette" a écrit dans le message de news: ... I would like to create a pop up box simular to the one that appears when you are closing your document and are asked to save. Is there a function to allow you to create your own pop up window and questions? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This is done by using VBA.
Try: Alt/F11, then Insert/Module, then enter this: Sub Test() answer=msgbox("Do you want to go to sleep now?",vbyesno) if answer =vbyes then msgbox "Good night" else msgbox "Good day!" End Sub then Alt/F11 again, then in Excel use Alt/F8, double-click Test & you'll see this example. "Bernadette" wrote: I would like to create a pop up box simular to the one that appears when you are closing your document and are asked to save. Is there a function to allow you to create your own pop up window and questions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Gray Bar Taking up Half of Excel Window | Excel Discussion (Misc queries) | |||
when i insert word art in excel sheet excel file closes automatica | Excel Discussion (Misc queries) | |||
How do I undo the Excel, Window Menu, New Window command | Excel Discussion (Misc queries) | |||
Can I edit headings in Excel Watch Window? | Excel Worksheet Functions |