I am having the following problem: my client updated Excel version and all user forms appear to be broken. (Described here: Excel UserForm displays at the wrong size)
There is a special default setting "Optimize for best appearance" (When using multiple displays) in newer Excel versions that causes the problem. When I switch to "Optimize for compatibility" option, the problem is gone.
Question: did someone figure out how to change this setting programmatically (in VBA code)?
I tried to record the macro and change the settings but no luck. The resulting program is empty.
I did not manage to find a workaround. Apparently when the "optimise for best appearance" option is active and multiple monitors are connected to a device, excel cannot properly build buttons, objects etc. Telling each user not to use multiple monitors or to switch this option manually off is not an option.
I am changing right now the application in the way that I do not use any objects. It sucks but there is no other way.