Start the Visual Basic Editor

Microsoft Visio Developer Reference

Start the Visual Basic Editor

On the Tools menu, click Macros, and then click Visual Basic Editor. Or press ALT+F11.

Tip For quicker access to the Visual Basic Editor and other developer commands, you can show the Developer toolbar in Microsoft Visio. To do this, right-click anywhere in the Visio toolbar, and then click Developer on the shortcut menu.