Share via


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

Concepts

Presentation Object

Presentation Object Members