L le888 Registered User. Local time Today, 16:55 Joined Dec 10, 2003 Messages 344 Dec 12, 2006 #1 Hi, Does existe a command that auto expanded the width of a column of a combox? I have try something like this... Me.cmbBook.(col)2.Width ......But, is the rest of the code? Thanks, Le
Hi, Does existe a command that auto expanded the width of a column of a combox? I have try something like this... Me.cmbBook.(col)2.Width ......But, is the rest of the code? Thanks, Le
boblarson Smeghead Local time Today, 12:55 Joined Jan 12, 2001 Messages 32,040 Dec 14, 2006 #2 This should work for you: Code: Me.cboYourComboBoxName.ColumnWidths = ".5 in;2.5 in;.75 in" Just include the number of values for the columns you have. Also, you can specify "0 in" or just put a semi-colon for the zero (such as ";2.5 in;.75 in"). You can substitute your own regional values for the "in" part.
This should work for you: Code: Me.cboYourComboBoxName.ColumnWidths = ".5 in;2.5 in;.75 in" Just include the number of values for the columns you have. Also, you can specify "0 in" or just put a semi-colon for the zero (such as ";2.5 in;.75 in"). You can substitute your own regional values for the "in" part.