31.12. What to Look For if Things Go Wrong

Ribbon customization — though useful and important — is new territory for many programmers. You have to deal with XML as a code platform, some unusual programming techniques (such as writing descriptive "markup" code in the XML and traditional programming code in VBA), communication between the XML and VBA via callbacks, new controls, new enumerations (such as the set of icons you can use with ImageMso), and so on.

Bugs happen even when writing code in a technology, such as Visual Basic, that you've been using for decades. So it's no surprise that Ribbon programming — with its several unique features — is pretty much guaranteed to bother you with bugs too. This section describes some strategies for ...

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.