Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change width of columns form vba

Status
Not open for further replies.

dsellos

Programmer
Apr 27, 2010
9
BR
Hey everybody.

I have a ListBox with seven columns.
I want each column has a specific width.

Can anyone help me?

Thanks!
 



Hi,

Turn on your macro recorder and start setting column widths.

Post back with your recorded code if you need help customizing.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
SkipVought hey, thanks for the reply.

I want to change the column width of a ListBox, not the column of the worksheet.

Greetings
 



Listbox has a ColumnWidths property. Did you check thru the properties?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thank you very much!

I never thought I'd look at the help of VBA.

thanks
 



There is actually an example in VB Help for ColumnWidths.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top