Private Sub SpinButton1_SpinDown()
Dim hwnd&
hwnd = ExecuteExcel4Macro("CALL(""user32"",""GetActiveWindow"",""JCC"")") 'api GetActiveWindow Capture du handle de la fenetre active
ExecuteExcel4Macro ("CALL(""user32"",""ShowWindow"",""JJJ"",""" & hwnd & """,""" & 3 & """)") ' application du mode
' et si tu veux les trois bouton debloque la ligne ci dessous
'ExecuteExcel4Macro ("CALL(""user32"",""SetWindowLongA"",""JJJJJ""," & hwnd & ", " & -16 & ", " & &H94CF0080 & ")") 'api SetWindowLongA
coeffzoom = Application.Min(Me.Height / HautUF, Me.Width / LargUF)
Me.Zoom = 100 * coeffzoom
End Sub