Dropdown Width

  • Thread starter Thread starter aftamath77
  • Start date Start date
A

aftamath77

Is there code for Visual Basics to control the width of the dropdown list for
combobox's. The list is °F and °C, which are very short widths, but the
dropdown width is too large by default. A lot od wasted space.
 
The macro-recorder is your friend. Record a macro when you adjust the width
of the combobox.
Example:

Sub Makro1()
'
' Makro1 Makro
' Makro registrert 06.10.2008 av driftsentral
'

'
ActiveSheet.Shapes("ComboBox1").Select
Selection.ShapeRange.ScaleWidth 0.50, msoFalse, msoScaleFromTopLeft
End Sub

Tidy it up afterwards.

HTH
knut
 
Back
Top