PrintComments Property

Microsoft Excel Visual Basic

PrintComments Property

       

Returns or sets the way comments are printed with the sheet. Read/write XlPrintLocation.

XlPrintLocation can be one of these XlPrintLocation constants.
xlPrintInPlace
xlPrintNoComments
xlPrintSheetEnd

expression.PrintComments

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example causes comments to be printed as end notes when worksheet one is printed.

Worksheets(1).PageSetup.PrintComments = xlPrintSheetEnd