Start the Visual Basic Editor (Visio)

In the Code group on the Developer tab, click Visual Basic. Or press ALT+F11.