I am trying to have a vba which will run a python code. Nothing seems to work.
This is what I have so far
hopefully someone can help![]()
Sub RunPythonScript() 'Procedure to run a Python Script in a VBA Procedure 'Declaration Dim objShell As Object 'For the Shell Dim Pythonexe, PythonScript As String 'Create the Shell Object Set objShell = VBA.CreateObject("Wscript.Shell") Pythonexe = """C:\Users\61458\Desktop\TEST\Windows32.exe\crawl.exe """ 'path of the crawl.exe 'Run your Python script objShell.Run Pythonexe 'two arguments 'Free variables for memory Set objShell = Nothing End Sub
Thank you in advance











LinkBack URL
About LinkBacks
Register To Reply

Bookmarks