This documentation is archived and is not being maintained.

Workbook.RejectAllChanges Method

Rejects all changes in the shared workbook.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in

public virtual void RejectAllChanges (
	[OptionalAttribute] Object When,
	[OptionalAttribute] Object Who,
	[OptionalAttribute] Object Where



One of the XlHighlightChangesTime values that specifies when the changes to be rejected were made.


A string that identifies who made the changes to be rejected. Can be "Everyone", "Everyone but Me", or the name of one of the users of the shared workbook.


An A1-style range reference that specifies the location of the changes to be rejected.

Optional Parameters

For information on optional parameters, see Understanding Optional Parameters in COM Interop.