共用方式為


Workbook.PurgeChangeHistoryNow Method

Removes entries from the change log for the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Sub PurgeChangeHistoryNow ( _
    Days As Integer, _
    SharingPassword As Object _
)
void PurgeChangeHistoryNow(
    int Days,
    Object SharingPassword
)

Parameters

  • Days
    Type: System.Int32

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

  • SharingPassword
    Type: System.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.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace