1

I want to pass paramaters from VBA to a JavaScript function and then return the result back to the VBA script. At first my JavaScript Function could look like this:

function myFunction(p1, p2) {
  return p1 * p2;   
}

My question is, if there is any command in VBA to solve this problem.

For the final setup, I want to use Node.js with Selenium to get some Information and send it back to VBA.

I know there are a lot of threads with similar question but I just dont get smart out of them. Many people use "execScript method". Can this be applied to my problem?

Thanks for your help.

maja95
  • 63
  • 1
  • 8

0 Answers0