Chapter 16. Customizing the Ribbon

WHAT'S IN THIS CHAPTER?

  • How to create custom ribbons for your solutions

  • Adding your own functionality to the Access ribbon

  • Using callback routines written in VBA to extend the functionality of your custom ribbons

  • Tips for Ribbon development

Unless you've used Access 2007, the first time you open Access 2010, you'll notice that things are different. The familiar menu bar and toolbars have been replaced with the Ribbon. The new interface may appear a bit daunting, but it's only a matter of time until you've learned where commands are located and are more comfortable with it.

This chapter provides a brief look at the Ribbon in Access 2010 and discusses some of the design goals of the Ribbon that you can apply to your applications. Then comes the fun stuff: customization. You start by examining the types of objects you can create in a custom ribbon, and then use what you learn to create two sample applications with different design goals: a ribbon that integrates with the Access Ribbon, and another to replace the Access Ribbon. As you'll soon see, the Ribbon is highly customizable, which can help you create new and exciting interfaces for your own applications.

Ribbon customizations are written in XML. Even if you've never written XML or are just getting started with XML, don't worry — it's straightforward and easy to understand. This chapter offers you the information and tools you need to customize the Ribbon (and learn a little about XML at the same time). ...

Get Microsoft® Access® 2010 Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.