(Reading time: 1 minute)

Excel

Beforeclose even is useful for running customized code before closing an excel file.


Example

 
 
 
Private Sub Workbook_Beforeclose(Cancel As Boolean)
    msgbox "Yes I am closing now"
End Sub
 
 
 

Oxygen
Author: Oxygen
Other articles by this author

Chillzee Tag Cloud

Let's Socialize

About Chillzee

Chillzee.com is an entrepreneurship portal.

The site provides informative topics on Organizational and Strategic needs.