User-defined Ribbons require a reference to "Microsoft Office 12.0 Object Library" for Office 2007, for Office 2010 use "Microsoft Office 14.0 Object Library".
To set the reference open any module (to start the Visual Basic Editor), menu "Tools" / "References...", and place a check on "Microsoft Office 1x.0 Object Library". Confirm the references dialog with "OK".