?
Solved

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

Posted on 2011-02-27
3
Medium Priority
?
637 Views
Last Modified: 2013-12-05
Thanks.
0
Comment
Question by:Frankie-D
2 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 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 93

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

862 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