Application.VBE Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a VBE object that represents the Visual Basic Editor.

expression .VBE

expression An expression that returns an Application object.

This example displays the number of references available for the active project.

MsgBox "References = " & VBE.ActiveVBProject.References.Count