WorkbookEvents_BeforePrintEventHandler WorkbookEvents_BeforePrintEventHandler WorkbookEvents_BeforePrintEventHandler Delegate

Definition

A Delegate type used to add an event handler for the BeforePrint event. The BeforePrint event occurs before the workbook (or anything in it) is printed.

public delegate void WorkbookEvents_BeforePrintEventHandler([Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void WorkbookEvents_BeforePrintEventHandler(out bool Cancel);
Public Delegate Sub WorkbookEvents_BeforePrintEventHandler(ByRef Cancel As Boolean)
Parameters
Cancel

False when the event occurs. If the event procedure sets this argument to True, the workbook isn't printed when the procedure is finished.

Inheritance
WorkbookEvents_BeforePrintEventHandlerWorkbookEvents_BeforePrintEventHandlerWorkbookEvents_BeforePrintEventHandler
Attributes

Applies to