WorkbookBase.VBASigned Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the Visual Basic for Applications project for the workbook has been digitally signed.
public:
property bool VBASigned { bool get(); };
public bool VBASigned { get; }
member this.VBASigned : bool
Public ReadOnly Property VBASigned As Boolean
Property Value
true
if the Visual Basic for Applications project for the workbook has been digitally signed; otherwise, false
.
Examples
The following code example uses the VBASigned property to display a message if the Visual Basic for Applications project for the workbook has not been digitally signed.
This example is for a document-level customization.
private void WorkbookVBASigned()
{
if (!this.VBASigned)
{
MessageBox.Show("Warning: This workbook has not been " +
"digitally signed.");
}
}
Private Sub WorkbookVBASigned()
If Not Me.VBASigned Then
MsgBox("Warning: This workbook has not been " & _
"digitally signed.")
End If
End Sub