shrinking or extra-large list box

KimberC

New Member
Joined
Jul 19, 2010
Messages
14
I have created an ActiveX listbox control and it works just fine on my PC. However, when I send the file to others, about half of them either experience the listbox being smaller than the size I created or larger. I've tried deleting and re-inserting the listbox while at 100% zoom and lower zoom percentages. It seems that when I create it at 80% zoom, the users get a "shrunken" list box that "fixes" itself to the right size by them changing their zoom. If I create it at 100% zoom, they get the extra-large box and it doesn't change size when they zoom.

I've done some internet research and found a suggestion to set the IntegralHeight to False, but that did not fix the problem. Any help to keep my list box the size I created it to be would be most appreciated!!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I'm having the same problem, except it's my userform that won't keep its proper height.
 
Upvote 0
Well...no answer make me think this is not a simple problem. For those interested, I didn't "fix" it, but I did find a workaround. I added this code to the worksheet after my users told me that zooming in and out fixed the problem for them...I just did that for them every time they open the sheet.

If anyone knows how to actually fix the problem vs. make it look fixed, I'm all ears!!

KimberC

Code:
Private Sub Worksheet_Activate()
    Application.ScreenUpdating = False
    ActiveWindow.Zoom = 100
    dbSheet.Shapes("myListBoxName").Select
    With Selection
        .Height = 62.25
        .Left = 29.25
        .Top = 158.25
        .Width = 144
    End With
    Range("B1").Select
 
    ActiveWindow.Zoom = 80
    Application.ScreenUpdating = True
 End Sub
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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