Workbook.PurgeChangeHistoryNow Method (2007 System)
Removes entries from the change log for the workbook.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
Public 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)
public void PurgeChangeHistoryNow(
int Days,
Object SharingPassword
)
public:
void PurgeChangeHistoryNow(
int Days,
Object^ SharingPassword
)
public function PurgeChangeHistoryNow(
Days : int,
SharingPassword : Object
)
Parameters
Days
Type: System.Int32The number of days that changes in the change log are to be retained.
SharingPassword
Type: System.ObjectThe 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 The Variable missing and Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.