Consulting

Results 1 to 3 of 3

Thread: TextAlign for specific columns in a ListBox

  1. #1
    VBAX Contributor
    Joined
    Jun 2007
    Posts
    150
    Location

    TextAlign for specific columns in a ListBox

    I don't suppose its possible to assign a text alignment for EACH column in an MS Forms ListBox?

    The form itself has a .TextAlign property, but that gets assigned to all columns. I'm mixing numerical and text data in the list, so it would be nice to have some columns Left-Justified and others Right-Justified.

    I'm pretty sure that this is impossible. A miracle, please?

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Contributor
    Joined
    Jun 2007
    Posts
    150
    Location
    The "ListView" control sounds intriguing, but I'm afraid to dig too deep into that toolbox because my company has not yet completed our Office 2003 transition yet.


    You would
    need to simulate alignment with embedded spaces.
    Yep, thats the conclusion I came to.

    Unfortunately, even though I'm already using the proportional font, some of the data is not from a DB, so there is no defined field size. Any magic tricks pulled with space padding will vary from run to run, so I'm better off just leaving everything left justified.

    A little more attention to number formatting should make things clearer for the end user.

    Thanks for the link!

Posting Permissions

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