Excel 2007 Power Programming with VBA (Mr. Spreadsheets Bookshelf)

The MultiPage control is very useful for UserForms that must display many controls. The MultiPage control lets you group the choices and place each group on a separate tab.

Figure 14-18 shows an example of a UserForm that contains a MultiPage control. In this case, the control has three pages, each with its own tab.

Figure 14-18: MultiPage groups your controls on pages, making them accessible from a tab.

CD-ROM  

This example is available on the companion CD-ROM. The file is named  multipage control demo.xlsm .

Note  

The Toolbox also contains a control named TabStrip , which resembles a MultiPage control. However, unlike the MultiPage control, the TabStrip control is not a container for other objects. The MultiPage control is much more versatile, and I've never had a need to actually use the TabStrip control.

Using a MultiPage control can be a bit tricky. The following are some things to keep in mind when using this control:

Категории