Solved

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

Posted on 2011-02-27
3
623 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

"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.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

803 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