Aligning and spacing controls

The Format menu in the VBE window provides several commands to help you precisely align and space the controls in a dialog box. Before you use these commands, select the controls you want to work with. These commands work just as you would expect, so I don't explain them here. Figure 17-18 shows a dialog box with several CheckBox controls about to be aligned.

Figure 17-18:

Use the FormatO Align command to change the alignment of UserForm controls.

Figure 17-18:

Use the FormatO Align command to change the alignment of UserForm controls.

When you select multiple controls, the last selected control appears with white handles rather than the normal black handles. The control with the white handles is the basis for aligning or resizing the other selected controls when you use the Format menu.

0 0

Post a comment