Sub ExecutePython()
Dim objShell As Object
Set objShell = VBA.CreateObject("Wscript.Shell")
Dim PythonExePath As String
PythonExePath = """C:\Users\it1\AppData\Local\Programs\Python\Python312\python.exe"""
Dim PythonScriptPath As String
PythonScriptPath = """C:\Users\it1\Desktop\dev\compteur.py"""
objShell.Run PythonExePath & " " & PythonScriptPath, 0, True
End Sub