Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
public virtual void CheckIn ( [OptionalAttribute] Object SaveChanges, [OptionalAttribute] Object Comments, [OptionalAttribute] Object MakePublic )
true saves changes and checks in the document; false returns the document to a checked-in status without saving revisions.
Allows the user to enter check-in comments for the revision of the workbook being checked in (applies only if SaveChanges equals true).
true allows the user to publish the workbook after it has been checked in. This submits the workbook for the approval process, which can eventually result in a version of the workbook being published to users with read-only rights to the workbook (applies only if SaveChanges equals true).
The following code example uses themethod to determine whether Microsoft Office Excel can check in the current workbook to a server. If the workbook can be checked in, then the example uses the CheckIn method to save revisions and check in the current workbook.