Chapter 10. Userform Design and Best Practices

Userforms are a fundamental part of most applications' user interfaces, ranging from custom message and input boxes to very complex data-entry forms. This chapter explains how to get the most out of Excel's userforms.

Principles

When we design and code userforms, we strive to adhere to a small set of basic principles whenever possible, explained below. We have found that following these principles has resulted in userforms that are easy to use, easy to code and easy to maintain. Although some of these principles may seem a little artificial at first, experience has shown that sticking to them gives long-term rewards.

Keep It Simple

A userform should not need a help file to explain how to fill it in. When ...

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