WorkbookBase.VBProject プロパティ

定義

ブック内にある Microsoft.Vbe.Interop.VBProject 仮想プロジェクトを取得します。

public:
 property Microsoft::Vbe::Interop::VBProject ^ VBProject { Microsoft::Vbe::Interop::VBProject ^ get(); };
public Microsoft.Vbe.Interop.VBProject VBProject { get; }
member this.VBProject : Microsoft.Vbe.Interop.VBProject
Public ReadOnly Property VBProject As VBProject

プロパティ値

ブック内の仮想 Microsoft.Vbe.Interop.VBProject プロジェクト。

次のコード例では、 プロパティをVBProject使用して、ブックのVisual Basic for Applications プロジェクトの名前を表示します。

この例は、ドキュメント レベルのカスタマイズ用です。

private void DisplayVBProject()
{
    MessageBox.Show("The name of the VB project is: " + this.VBProject.Name);
}
Private Sub DisplayVBProject()
    MsgBox("The name of the VB project is: " & _
        Me.VBProject.Name)
End Sub

注釈

このプロパティは、Visual Basic プロジェクトではなく、Visual Basic for Applications プロジェクトを参照します。

適用対象