Bonjour toutes et tous
@Fabien
j'ai trouvé ce code merci au codeur
j'ai testé fonctionnel, il ferme pour cela, il faut mettre un bouton de commande (j'ai mis bouton Active X) + le code d'une nouvelle fonction dans la feuille en question, merci à F
Option Explicit
Private Sub CommandButton1_Click()
KillProcess "osk.exe"
End Sub
Public Function KillProcess(ByVal ProcessName As String) As Boolean
Dim svc As Object
Dim sQuery As String
Dim oproc
Set svc = GetObject("winmgmts:root\cimv2")
sQuery = "select * from win32_process where name='" & ProcessName & "'"
For Each oproc In svc.execquery(sQuery)
oproc.Terminate
Next
Set svc = Nothing
End Function
crdlt,
André