excel open macro editor code example Example: how to open vba in excel 'To open the VBA Editor in Excel, the keyboard shortcut is: Alt-F11