Chapter 13. UserForm Design and Best Practices

Dialog boxes of various kinds are a fundamental part of most Excel application user interfaces, ranging from message boxes to complex data entry forms. This chapter explains how to get the most out of custom dialog boxes built with VBA UserForms.

Principles

When we design and code UserForms we strive to adhere to a small set of basic principles whenever possible, as explained in the following sections. By following these principles you create UserForms that are easy to use, code, and maintain. While some of these principles may seem a little artificial at first, our experience has shown that sticking to them provides long-term rewards.

Keep It Simple

A UserForm should not require a help file to explain ...

Get Professional Excel Development: The Definitive Guide to Developing Applications Using Microsoft Excel, VBA, and .NET, Second Edition 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.