#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Dropdown Width

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dropdown Width

Perhaps this link may be of use to you:

http://www.contextures.com/xlDataVal10.html#ChangeProp

Hope this helps.

Pete

"aftamath77" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Dropdown Width

I'm not using data validation. This is visual basic code.

"Pete_UK" wrote:

Perhaps this link may be of use to you:

http://www.contextures.com/xlDataVal10.html#ChangeProp

Hope this helps.

Pete

"aftamath77" wrote in message
...
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.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Dropdown Width

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

"aftamath77" skrev i melding
...
I'm not using data validation. This is visual basic code.

"Pete_UK" wrote:

Perhaps this link may be of use to you:

http://www.contextures.com/xlDataVal10.html#ChangeProp

Hope this helps.

Pete

"aftamath77" wrote in message
...
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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofilter dropdown box width Daniel Excel Discussion (Misc queries) 1 January 8th 10 08:54 AM
Make Dropdown List Temporarily Wider & Same Width for Multiple Col AK9955 Excel Discussion (Misc queries) 1 November 1st 07 08:46 AM
ASC() does not convert full-width to half-width letters (Exel 2003 DY Excel Worksheet Functions 0 January 27th 07 01:34 PM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
Dropdown list width changing code XXL User Excel Worksheet Functions 1 June 26th 06 09:11 PM


All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"