M$ bug: ActiveX controls shrinks when resolution changes

Gringoire

Board Regular
Joined
Nov 18, 2016
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Dear friends,
after some years I stumbled again on a well known M$ bug: activeX controls (buttons, combobox, etc...) shrinks their dimensions ans font size becoming unreadables (see picture below).
It happened when screen resolution changes.

Until today I solved (workaround) this issue calling the routine below at each time the activeX control is used.
Today, after a presentation on a big wallscreen this bug appeared again!
The debugger shows that BtnResize routine is called as expected but without any effect.

I already did some try about autosize false or true (true is even worst!), printable or not, etc... with no success.
I would like to avoid moving the activeX controls from worksheet to a dedicated form because it is an huge project with dozen of modules and thousands of code lines to review.

Microsoft suggest to update the register, but this excel file will be redistributed to dozen of Users, I cannot force each one of them to update the win register.

Do you have any fresh solution to this issue?

VBA Code:
Sub BtnResize(B As Object, FS As Integer, t As Double, L As Double, H As Integer, W As Integer)

    '(B=name FS=fontsize, T=top, L=left H=height, W=width)
    B.Font.Size = 7       'size change to avoid bugged fonts
    B.Top = t
    B.Left = L
    B.Height = H
    B.Width = W
    B.Font.Size = FS
End Sub

OI07vas.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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