I have a question about calling a Python script in my Excel VBA function.
For instance, in my Excel VBA function, I have: abc(x,y,z). In this function, I will pass x,y,z to my Python script as input. Python output will then return calculation result to my abc() function. What I want to achieve is as follows:
function abc(x,y,z)
' here x, y, z is the input that will pass to Python
' then we call python scripts here with the return value h
< call Python here>
abc=h
end function
My question is:
- How to pass
x,y,zto Python scripts? - How to give my return value
htoabc()?