For office 2007. The ribbon xml file header is <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> Bug for office 2010, the following header is better <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="OnLoad"> http://www.ucmapi.com