PowerPoint) (Presentation.CanCheckIn 方法

如果 Microsoft PowerPoint 可以签入指定的演示文稿中,到服务器,则返回 True 。

语法

expression。 CanCheckIn

表达式 表示 Presentation 对象的变量。

返回值

布尔值

备注

若要利用 PowerPoint 中内置的协作功能,必须将演示文稿存储在 Microsoft SharePoint Portal 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

要调用上述子例程,请使用以下子例程,并将“ https://servername/workspace/report.ppt ”文件名替换为位于上述备注部分中提到的服务器上的实际文件。

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

另请参阅

演示文稿对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。