Skip to content

Files

Latest commit

 

History

History
73 lines (43 loc) · 1.71 KB

PowerPoint.Presentation.CanCheckIn.md

File metadata and controls

73 lines (43 loc) · 1.71 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.CanCheckIn method (PowerPoint)
vbapp10.chm583066
vbapp10.chm583066
PowerPoint.Presentation.CanCheckIn
26d76ca4-4fd3-2037-e193-0d2d39f59361
06/08/2017
medium

Presentation.CanCheckIn method (PowerPoint)

Returns True if Microsoft PowerPoint can check in a specified presentation to a server.

Syntax

expression. CanCheckIn

expression A variable that represents a Presentation object.

Return value

Boolean

Remarks

To take advantage of the collaboration features built into PowerPoint, you must store presentations on a Microsoft SharePoint Portal Server.

Example

This example checks the server to see if the specified presentation can be checked in, and if it can be, closes the presentation and checks it back into server.

Sub CheckInPresentation(strPresentation As String)

    If Presentations(strPresentation).CanCheckIn = True Then
        Presentations(strPresentation).CheckIn
        MsgBox strPresentation & " has been checked in."
    Else
        MsgBox strPresentation & " cannot be checked in " & _
        "at this time. Please try again later."
    End If

End Sub

To call the subroutine above, use the following subroutine and replace the " https://servername/workspace/report.ppt " file name with an actual file located on a server mentioned in the Remarks section above.

Sub CheckPPTIn()
    Call CheckInPresentation(strPresentation:= _
        "https://servername/workspace/report.ppt ")
End Sub

See also

Presentation Object

[!includeSupport and feedback]