31.5. Adding a New Group

In this next example, you'll see how to decide where to locate a new, custom element on the Ribbon, and also where to find the correct control identifier (idMso attribute) for built-in dialog boxes, commands, and controls.

31.5.1. Limitations to Group Customizing

You'll find a few limitations when customizing groups on the Ribbon.

Although you can hide a built-in group, you can't modify a group's options. In other words, in the following example you will add Word's Next Window command to the Ribbon. Obviously, this should go in the Window group of the View tab. However, you can't add options to built-in groups. So we'll have to devote a whole new group of our own to the Next Window command.

Also keep in mind that you ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.