Name
workbook.HighlightChangesOptions([When], [Who], [Where])
Synopsis
For shared workbooks, controls which changes are highlighted.
|
Argument |
Settings |
|---|---|
|
|
One of the following constants: |
|
|
A string indicating the user from which to accept changes. Can be “Everyone,” “Everyone but Me,” or the name of one of the users of the shared workbook. |
|
|
A string indicating a range of cells for which to accept changes. |
The following code turns on change highlighting, makes some changes to highlight, then accepts those changes:
If ThisWorkbook.MultiUserEditing Then
ThisWorkbook.HighlightChangesOnScreen = True
ThisWorkbook.HighlightChangesOptions xlSinceMyLastSave
[b2] = "Value kept"
MsgBox "Pause: Highlighted changes"
ThisWorkbook.AcceptAllChanges
MsgBox "Pause: Changes accepted"
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