RejectAllChanges Method

Microsoft Excel Visual Basic

Rejects all changes in the specified shared workbook.

expression.AcceptAllChanges(When, Who, Where)

expression    Required. An expression that returns a Workbook object

When   Optional Variant. Specifies when all the changes are rejected.

Who   Optional Variant. Specifies by whom all the changes are rejected.

Where   Optional Variant. Specifies where all the changes are rejected.

Example

This example rejects all changes in the active workbook.

ActiveWorkbook.RejectAllChanges