ListBox (ActiveX Controls) apear with two scroll bars for some users

ThomasA83

Board Regular
Joined
Mar 10, 2009
Messages
95
Hi,

I am working in Excel Pro Plus 2016 and have the issue, when some users open my file, that the scrollbar in the ListBox (ActiveX) shows odd and twice. This is not an issue on my own laptop nor a few other user's, and I cant figure out why this issue occur for some.

Users with issue look like this: https://ibb.co/mXCGtG

Users with no issues: https://ibb.co/k66btG

Any idea what could be wrong?

Brgds
Thomas
 
Here's what I tested: a Worksheet_Activate event. I added a bit of boilerplate but I can't guarantee this code solves your odd problem.

Code:
Option Explicit

Private Sub Worksheet_Activate()
    RedrawListboxes
End Sub

Sub RedrawListboxes()
    Dim lbox_top As Double
    Dim lbox_left As Double
    Dim lbox_ht As Double
    Dim lbox_wd As Double
    Dim obj As OLEObject
    
    For Each obj In OLEObjects
    
        If TypeOf obj.Object Is MSForms.ListBox Then
            With obj
            
                ' Store current box's position and size.
                lbox_top = .Top
                lbox_left = .Left
                lbox_ht = .Height
                lbox_wd = .Width
                
                ' Make the box disappear.
                .Top = 0
                .Left = 0
                .Height = 0
                .Width = 0
                .Visible = False
                
                ' Restore the box.
                .Top = lbox_top
                .Left = lbox_left
                .Height = lbox_ht
                .Width = lbox_wd
                .Visible = True
                
            End With
        End If
        
    Next obj
End Sub
 
Last edited:
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,757
Messages
6,126,695
Members
449,331
Latest member
smckenzie2016

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