title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Presentation.VBASigned property (PowerPoint) |
vbapp10.chm583059 |
|
|
eebb411d-6312-f858-275f-b0f0ee12b212 |
06/08/2017 |
medium |
Determines whether the Visual Basic for Applications (VBA) project for the specified document has been digitally signed. Read-only.
expression. VBASigned
expression A variable that represents a Presentation object.
MsoTriState
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. |
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
[!includeSupport and feedback]