Results 1 to 2 of 2

Thread: Align text in label

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,942

    Align text in label

    ohhhhhhhhhhhhhhhhh....
    Why the text not is alligned in the middle of label but in the top????????

    See image.
    Possible to set via code?

    note:
    - i use vba for excel
    - the label is on userform
    Attached Images Attached Images  

  2. #2
    Hyperactive Member
    Join Date
    Oct 2010
    Location
    Indiana
    Posts
    457

    Re: Align text in label

    That is actually a text box. From a VBA userform, I don't believe you can completely align it in the middle, but you can center it, and you can adjust the size of the box or the font of the text...

    To align in the Center:
    Code:
        Userform1.TextBox1.TextAlign = fmTextAlignCenter

Posting Permissions

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



Click Here to Expand Forum to Full Width