Name
workbook.RejectAllChanges([When], [Who], [Where])
Synopsis
For shared workbooks, rolls back changes made by others. RejectAllChanges can remove changes that are in the workbook’s change history that have not yet been committed by an AcceptAllChanges method.
|
Argument |
Settings |
|---|---|
|
|
A string indicating the time after which to reject changes. |
|
|
A string indicating the user from which to reject changes. Can be |
|
|
A string indicating a range of cells for which to reject changes. |
For example, the following code rejects all of the changes made within the last 24 hours:
If ThisWorkbook.MultiUserEditing Then
ThisWorkbook.RejectAllChanges CStr(Now - 1)
End IfBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access