Partager via


_Workbook.PurgeChangeHistoryNow Method

Removes entries from the change log for the specified workbook.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub PurgeChangeHistoryNow ( _
    Days As Integer, _
    SharingPassword As Object _
)
'Usage
Dim instance As _Workbook
Dim Days As Integer
Dim SharingPassword As Object

instance.PurgeChangeHistoryNow(Days, _
    SharingPassword)
void PurgeChangeHistoryNow(
    int Days,
    Object SharingPassword
)

Parameters

  • Days
    Type: System.Int32

    Required Integer. The number of days that changes in the change log are to be retained.

  • SharingPassword
    Type: System.Object

    Optional Object. The 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.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace