+ Reply to Thread
Results 1 to 4 of 4

Align text for labels in user forms

  1. #1
    Tim Archer
    Guest

    Align text for labels in user forms

    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

  2. #2
    Rob Bovey
    Guest

    Re: Align text for labels in user forms

    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 *


    "Tim Archer" <[email protected]> wrote in message
    news:[email protected]...
    >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




  3. #3
    Bob Phillips
    Guest

    Re: Align text for labels in user forms

    Tim,

    You might also want to take a look at Stephen Bullen's VBE Tools add-in,
    which allows you to 'nudge controls

    http://www.oaltd.co.uk/VBETools/Default.htm

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Rob Bovey" <[email protected]> wrote in message
    news:[email protected]...
    > 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 *
    >
    >
    > "Tim Archer" <[email protected]> wrote in message
    > news:[email protected]...
    > >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

    >
    >




  4. #4
    Tim Archer
    Guest

    Re: Align text for labels in user forms

    Fantastic! Thanks for your help.

    >-----Original Message-----
    >Tim,
    >
    >You might also want to take a look at Stephen Bullen's

    VBE Tools add-in,
    >which allows you to 'nudge controls
    >
    >http://www.oaltd.co.uk/VBETools/Default.htm
    >
    >--
    >
    >HTH
    >
    >RP
    >(remove nothere from the email address if mailing direct)
    >
    >
    >"Rob Bovey" <[email protected]> wrote in message
    >news:[email protected]...
    >> 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 *
    >>
    >>
    >> "Tim Archer" <[email protected]> wrote in

    message
    >> news:[email protected]...
    >> >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

    >>
    >>

    >
    >
    >.
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1