Since the MenuBar appears as a selection in the Tools | Customize | Toolbars dialog, perhaps this will help? Note that I haven't tried to turn off my menus to check it, so use it at your own risk....
Option Strict Off
Option Explicit Off
Imports EnvDTE
Imports System.Diagnostics
Public Module RecordingModule
Sub menu()
DTE.ExecuteCommand ("Tools.Customize")
End Sub
End Module