Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.68 KB

PowerPoint.Presentation.VBASigned.md

File metadata and controls

68 lines (42 loc) · 1.68 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.VBASigned property (PowerPoint)
vbapp10.chm583059
vbapp10.chm583059
PowerPoint.Presentation.VBASigned
eebb411d-6312-f858-275f-b0f0ee12b212
06/08/2017
medium

Presentation.VBASigned property (PowerPoint)

Determines whether the Visual Basic for Applications (VBA) project for the specified document has been digitally signed. Read-only.

Syntax

expression. VBASigned

expression A variable that represents a Presentation object.

Return value

MsoTriState

Remarks

The value of the VBASigned property can be one of these MsoTriState constants.

Constant Description
msoFalse The VBA project for the specified document has not been digitally signed.
msoTrue The VBA project for the specified document has been digitally signed.

Example

This example loads a presentation called MyPres.ppt and tests to see whether or not it has a digital signature. If there's no digital signature, the code displays a warning message.

Presentations.Open FileName:="c:\My Documents\MyPres.ppt", _
    ReadOnly:=msoFalse, WithWindow:=msoTrue

With ActivePresentation
    If .VBASigned = msoFalse And _
           .VBProject.VBComponents.Count > 0 Then
       MsgBox "Warning! The Visual Basic project for" _
           & vbCrLf & "this presentation has not" _
           & vbCrLf & " been digitally signed." _
           , vbCritical, "Digital Signature Warning"
    End If
End With

See also

Presentation Object

[!includeSupport and feedback]