Share via


Workbook.VBASigned Property (2007 System)

Gets a value that indicates whether the Visual Basic for Applications project for the workbook has been digitally signed.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property VBASigned As Boolean
'Usage
Dim instance As Workbook 
Dim value As Boolean 

value = instance.VBASigned
[BrowsableAttribute(false)]
public bool VBASigned { get; }
[BrowsableAttribute(false)]
public:
property bool VBASigned {
    bool get ();
}
public function get VBASigned () : boolean

Property Value

Type: System.Boolean
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 Sub WorkbookVBASigned()
    If Not Me.VBASigned Then
        MsgBox("Warning: This workbook has not been " & _
            "digitally signed.")
    End If 
End Sub
private void WorkbookVBASigned()
{
    if (!this.VBASigned)
    {
        MessageBox.Show("Warning: This workbook has not been " +
            "digitally signed.");
    }
}

.NET Framework Security

See Also

Reference

Workbook Class

Workbook Members

Microsoft.Office.Tools.Excel Namespace