Private Sub UserForm_Activate()
Dim OldW#, OldH#, HwnD&, Ratio#
With Me
OldW = .Width
OldH = .Height
'Api GetActiveWindow
HwnD = ExecuteExcel4Macro("CALL(""user32"",""GetActiveWindow"",""JCC"")") 'handle fenetre active
'Api Showindow
ExecuteExcel4Macro ("CALL(""user32"",""ShowWindow"",""JJJ"",""" & HwnD & """,""" & 3 & """)") 'l'argument"3"=plein ecran"
Ratio = Application.Min(.Height / OldH, 4, .Width / OldW)
.Zoom = (Ratio * 100)
End With
End Sub