Workbook.CheckInWithVersion Method

Sends the workbook from the local computer to a server, and sets the local workbook to read-only so that it cannot be edited locally. Calling this method closes 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 CheckInWithVersion ( _
    SaveChanges As Object, _
    Comments As Object, _
    MakePublic As Object, _
    VersionType As Object _
)
void CheckInWithVersion(
    Object SaveChanges,
    Object Comments,
    Object MakePublic,
    Object VersionType
)

Parameters

  • SaveChanges
    Type: System.Object

    true to save changes and check in the document; false to return the document to a checked-in state without saving revisions.

  • Comments
    Type: System.Object

    true to enable check-in comments; false to check in the workbook without comments. This parameter applies only if SaveChanges is true.

  • MakePublic
    Type: System.Object

    true to enable 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).

  • VersionType
    Type: System.Object

    Specifies versioning information for the document.

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