Name
workbook.CheckIn([SaveChanges], [Comments], [MakePublic])
Synopsis
For workbooks that are part of a shared workspace, checks the workbook back in to the SharePoint server and closes the workbook.
|
Argument |
Settings |
|---|---|
|
|
True saves current changes back to the server before checking the workbook in; False does not save current changes to the server. |
|
|
Comments to save with changes. |
|
|
True allows all users of the shared workspace to read the workbook; False denies read-only users access to the workbook. |
The following code saves changes and checks a workbook back into the shared workspace:
Set wb = ThisWorkbook
If wb.SharedWorkspace.Connected And wb.CanCheckIn Then
ThisWorkbook.CheckIn True, "Minor change"
MsgBox ThisWorkbook.Name & " is checked in."
Else
MsgBox "Could not check in " & ThisWorkbook.Name
End IfBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access