This documentation is archived and is not being maintained.
|Excel Developer Reference|
expression A variable that represents an Application object.
|Wb||Required||Workbook||The workbook that's being closed|
|Cancel||Required||Boolean||False when the event occurs. If the event procedure sets this argument to True, the workbook doesn't close when the procedure is finished.|
This example prompts the user for a yes or no response before closing any workbook.
|Visual Basic for Applications|