Sub RemoveTitleBar()
Dim mhWndForm, h
h = Me.InsideHeight
mhWndForm = ExecuteExcel4Macro("CALL(""user32"",""GetActiveWindow"",""JCC"")") 'handle fenetre active
ExecuteExcel4Macro ("CALL(""user32"",""SetWindowLongA"",""JJJJJ""," & mhWndForm & ", " & -16 & ", " & &H94080080 & ")") 'api SetWindowLongA
ExecuteExcel4Macro ("CALL(""user32"",""DrawMenuBar"",""JJJJJJ"", " & mhWndForm & ")")
ExecuteExcel4Macro ("CALL(""user32"",""SetParent"",""JJJJJ""," & mhWndForm & ", " & Application.hwnd & ")")
Me.Height = h
End Sub