AppEvents_WorkbookBeforeCloseEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Delegate type used to add an event handler for the WorkbookBeforeClose event. The WorkbookBeforeClose event occurs immediately before any open workbook closes.
public delegate void AppEvents_WorkbookBeforeCloseEventHandler(Workbook ^ Wb, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_WorkbookBeforeCloseEventHandler(Workbook Wb, out bool Cancel);
Public Delegate Sub AppEvents_WorkbookBeforeCloseEventHandler(Wb As Workbook, ByRef Cancel As Boolean)
Parameters
- Wb
- Workbook
The workbook that's being closed.
- Cancel
- 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.
- Attributes
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk