Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.42 KB

Excel.Workbook.HighlightChangesOptions.md

File metadata and controls

51 lines (33 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.HighlightChangesOptions method (Excel)
vbaxl10.chm199172
vbaxl10.chm199172
Excel.Workbook.HighlightChangesOptions
ac69ee3e-c5ea-5ac0-418a-0b94d56a8777
05/29/2019
medium

Workbook.HighlightChangesOptions method (Excel)

Controls how changes are shown in a shared workbook.

Syntax

expression.HighlightChangesOptions (When, Who, Where)

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data type Description
When Optional Variant The changes that are shown. Can be one of the following XlHighlightChangesTime constants: xlSinceMyLastSave, xlAllChanges, or xlNotYetReviewed.
Who Optional Variant The user or users whose changes are shown. Can be "Everyone," "Everyone but Me," or the name of one of the users of the shared workbook.
Where Optional Variant An A1-style range reference that specifies the area to check for changes.

Example

This example shows changes to the shared workbook on a separate worksheet.

With ActiveWorkbook 
 .HighlightChangesOptions _ 
 When:=xlSinceMyLastSave, _ 
 Who:="Everyone" 
 .ListChangesOnNewSheet = True 
End With 

[!includeSupport and feedback]