_Workbook.CheckIn Method

Returns a workbook from a local computer to a server and sets the local workbook to read-only so that it cannot be edited locally. Calling this method will also close the workbook.

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

Syntax

'Declaration
Sub CheckIn ( _
    SaveChanges As Object, _
    Comments As Object, _
    MakePublic As Object _
)
'Usage
Dim instance As _Workbook
Dim SaveChanges As Object
Dim Comments As Object
Dim MakePublic As Object

instance.CheckIn(SaveChanges, Comments, _
    MakePublic)
void CheckIn(
    Object SaveChanges,
    Object Comments,
    Object MakePublic
)

Parameters

  • SaveChanges
    Type: System.Object

    Optional Object. True saves changes and checks in the document. False returns the document to a checked-in status without saving revision.

  • Comments
    Type: System.Object

    Optional Object. Allows the user to enter check-in comments for the revision of the workbook being checked in (applies only if SaveChanges equals True).

  • MakePublic
    Type: System.Object

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

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace