
Multi Column TextBox Column Widths
Quote:
>Hi:
>I have a multicolumn textbox with 2 columns. Depending on
>a command button the text in each column can be variable
>length. If I set the columns to accomodate the longest
>text in a column then on some displays column 2 is too far
>away from column 1. Is there any way to calculate the
>length in points (or inches or ...) of a text string based
>on the default point size for the list box. I tried
>using -1 but it is still too far away. If this is not the
>way to do it I would appreciate some direction.
muck around with
Selection.Information(wdHorizontalPositionRelativeToTextBoundary)
and its brethren.
Steve Hudson - Word Heretic, Sydney, Australia
I can do tricky stuff with Word or words for you.
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 1558 pages of dump left and dropping...
The VBA Beginner's Spellbook is now available!
The first graphical representation of the Word object model
and an extensive checklist for functional template development.
Perfect for everyone at every level of VBA usage.