Solved

How do I set a listbox or combo box's column widths in VBA using twips?

Posted on 2011-02-27
3
615 Views
Last Modified: 2013-12-05
Thanks.
0
Comment
Question by:Frankie-D
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 34992538
AFAIK, you can't. This is managed by user settings on the machine.

You can build functions that translate those, of course. Just divide your Twips value by 1440, which is the approximate number of Twips in 1 inch. So if you determine that you need a column that is 500 Twips wide, then a second that is 800 Twips wide:

Me.MyListbox.ColumnWidths = (500/1440) & ";" & (800/1440)

0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 35340052
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now