Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I run python script from VBA code 1

Status
Not open for further replies.

yarondavid

Programmer
May 8, 2006
20
IL
Hi

I want to run a python script from VBA code, but I don't know how to do it.

Thanks,
yaron
 
Have you tried the Shell function ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top