I\'m not sure if I have the correct terms above, but what I\'m trying to do is call a Javascript function passing parameters into it from an Excel File, so the function will
Two possible issues:
Example:
Dim x as String
x = "Hello world!"
Msgbox x
// shows "Hello world!"
Msgbox "x"
// shows "x"
Call
is never required (because you can just omit parentheses instead) and can cause problemsExample:
Call Msgbox("x")
// is almost exactly the same as
Msgbox "x"
Just use:
With foo
// do stuff
.Document.parentWindow.execScript "FillVendorNames(" & cCode & ")", "javascript"
// do more stuff
End With