Export (0) Print
Expand All

Workbook.PurgeChangeHistoryNow Method

Office 2007
Removes entries from the change log for the specified workbook.

Syntax

expression.PurgeChangeHistoryNow(Days, SharingPassword)

expression   A variable that represents a Workbook object.

Parameters

NameRequired/OptionalData TypeDescription
DaysRequiredLongThe number of days that changes in the change log are to be retained.
SharingPasswordOptionalVariantThe password that unprotects the workbook for sharing. If the workbook is protected for sharing with a password and this argument is omitted, the user is prompted for the password.

Example

This example removes all changes that are more than one day old from the change log for the active workbook.

Visual Basic for Applications
ActiveWorkbook.PurgeChangeHistoryNow Days:=1



Community Additions

ADD
Show:
© 2014 Microsoft