ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   resizing listbox columns in excel userform (https://www.excelbanter.com/excel-programming/376647-resizing-listbox-columns-excel-userform.html)

u9946675

resizing listbox columns in excel userform
 
Hi
I have a listbox in an excel visual basic userform with multiple
columns.

I want to resize some of the columns of the text in the box. How do I
do this?

If I use

userform.listbox1.columnwidths=100, it only resizes the leftmost
column,

Any suggestions much appreciated.

Thanks


Tom Ogilvy

resizing listbox columns in excel userform
 
userform1.listbox1.columnwidths = 100; 75; 150

A trip to help might be informative as there is more to learn.
--
Regards,
Tom Ogilvy



"u9946675" wrote:

Hi
I have a listbox in an excel visual basic userform with multiple
columns.

I want to resize some of the columns of the text in the box. How do I
do this?

If I use

userform.listbox1.columnwidths=100, it only resizes the leftmost
column,

Any suggestions much appreciated.

Thanks




All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com