Scenario: I am trying to run a python script from a vba code in excel. The code runs with no errors, but yields no results whatsoever.
Code in VBA:
Private Sub CommandButton1_Click()
Dim Ret_Val
Dim args As String
args = "\\X\s\D\D\Data_manager.py"
Ret_Val = Shell("C:\Users\D\AppData\Local\Continuum\anaconda2\python.exe" & " " & args, vbNormalFocus)
'also tried this, same result
Ret_Val = Shell("C:\Users\D\AppData\Local\Continuum\anaconda2\python.exe \\X\s\D\D\Data_manager.py")
End Sub
Question: I ran this same code a couple of months ago and it worked just fine, but now, for some reason it is behaving weirdly. Any ideas on what might be happening?
OBS1: I also read other posts in SO with similar problems, but for those, VBA seems to be throwing an error, which is something that does not happen in my code.
OBS2: I know the code is not yielding any result, because my python script is pretty simple, it asks for a couple of inputs and outputs them to a csv file.