I am trying to trigger the .ipynb file using VBA. I have written the following code; however, the command doesn't execute the file and escape from the loop without any error. Could you please let me know where I am going wrong in the below piece of VBA code?
Sub RunScript()
Dim Ret_Val
FilePath = """ C:\Users\ABC\def.ipynb"""
Python = """ C:\Program
Files\Anaconda3\python.exe"""
Ret_Val = Shell(Python & " " &
FilePath, vbNormalFocus)
If Ret_Val = 0 Then
MsgBox "Error", vbOKOnly
End If
End Sub
I have tried the .py file, and it worked well. However, I am facing an issue with .ipynb files.