Mar 5, 2011 #1 yarondavid Programmer Joined May 8, 2006 Messages 20 Location IL Hi I want to run a python script from VBA code, but I don't know how to do it. Thanks, yaron
Mar 5, 2011 1 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Have you tried the Shell function ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Mar 5, 2011 Thread starter #3 yarondavid Programmer Joined May 8, 2006 Messages 20 Location IL Yes, I use the following command: Call Shell("cmd.exe c:\Temp\C-env_scan\c_env_wrappers_coverage.py", vbNormalFocus) I want to open the Command line and run the script python "c_env_wrappers_coverage.py", but the script dosn't written in the Command line Upvote 0 Downvote
Yes, I use the following command: Call Shell("cmd.exe c:\Temp\C-env_scan\c_env_wrappers_coverage.py", vbNormalFocus) I want to open the Command line and run the script python "c_env_wrappers_coverage.py", but the script dosn't written in the Command line
Mar 5, 2011 #4 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR And this ? Call Shell("cmd.exe [!]/C[/!] c:\Temp\C-env_scan\c_env_wrappers_coverage.py", vbNormalFocus) Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
And this ? Call Shell("cmd.exe [!]/C[/!] c:\Temp\C-env_scan\c_env_wrappers_coverage.py", vbNormalFocus) Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Mar 5, 2011 Thread starter #5 yarondavid Programmer Joined May 8, 2006 Messages 20 Location IL Thank you very much, it works !! Upvote 0 Downvote