Align text for labels in user forms

T

Tim Archer

I have recently been starting to create user forms but
have become frustrated by what I'm sure is a very minor
thing. When I make a label to indicate what a text box
is used for, the text within the label is always justifed
top left. I have found how to change the horizontal
justification with TextAlign in Properties but I can't
find a way of centring the text vertically. Because the
controls all fit into the grid, all my labels do not
align with the controls that they are associated with.

Question: how do I centre the text vertically? Or can I
turn off the grid?

Many thanks for any help,

Tim
 
R

Rob Bovey

Hi Tim,

You can't align the text in a Label control vertically. You can,
however, turn off the grid. From the VBE menu choose Tools/Options/General.
Unchecking the "Align Controls to Grid" checkbox will allow you to move
controls independent of the grid. Unchecking the "Show Grid" checkbox will
hide the grid itself (these two settings are independent).

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* Unsolicited e-mail replies will be ignored *
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top