i have about 50 labels that are each just barely big enough to fit the letter
x in them. the labels are on a report. i need to align all the labels very precisely.
is there an easier way to do this than trusting my eyes?
migrated from stackoverflow.com May 24 '10 at 22:21
This question came from our site for professional and enthusiast programmers.
Go into design mode.
Note that there is also a Left field for horizontal placement.
In design view, you can bump the controls that have the focus by one pixel by holding down the Ctrl key and using the arrows keys to move them in the desired direction. Each arrow keypress moves the selected controls by one pixel in the direction of the arrow.
Then, you can check their alignment by clicking and dragging over your design surface to create a rectangle. Use the line of the leading edge of the selection rectangle as a straightedge, and position it over the edge of the controls you are checking for alignment.
You can also use Align Top, Align Left, and so forth to align all of the selected controls along the top or left edge, etc.
Place the top control in the right location.
Select it and all the others.
A2003 and before:
From the format menu, choose ALIGN then LEFT.
From the ribbon, choose ARRANGE then LEFT (under Control Alignment).