Combo Box

gyckl

New Member
Joined
May 13, 2011
Messages
19
Hi

I have built a form where the user can tick an Active x Combo box to select the service they require.

However, every time I tick a box the box itself seems to increase in size to a degree that the form looks really messy .. I have tried not moving and sizing with cells from the properties function but this does not work - they just keep increasing in size the more times they are selected.

Has anybody had this issue before or know how to solve it - I need to present this model to our Sales Director tomorrow and i'm beginning to panic (spent all last night trying to sort it out with no success :confused: )

Any help much appreciated

Many Thanks

Chris
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
1. Right-click combo
2. Format Control
3. Properties
4. Don't move or size with cells
 
Upvote 0
Thanks Sektor - I have already tried this but it doesn't seem to work - they just keep on increasing in size.
Don't suppose you know anything else that might work do you?
 
Upvote 0
In Forms designer write down two properties: Width and Height.
Then in the end of Click event assign these digits to these properties.

Code:
Private Sub ComboBox1_Click()
    
    ' Your code......
    
    ' In the end of procedure
    ComboBox1.Width = 100 ' <--- Your digit
    ComboBox1.Height = 10  ' <--- Your digit

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top