Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
On edit Module (Javascript)
function alertJS1() {
var x=new ActiveXObject("WScript.Shell");
x.popup('works');
}
function alertJS(s) {
var x=new ActiveXObject("WScript.Shell");
x.popup(y);
}
On Button - in External - Macro - alertJS1 is okay
On Button - in External - Macro - alertJS('any message') not okay
The Action -> Run Macro does not pass parameters. Possible workarounds are:
1. Set a variable value before calling the macro. And then read the variable value in the macro.
2. Use Multiple (differently named) Subs that call the main sub, passing a parameter.
-Rob
The Action -> Run Macro does not pass parameters. Possible workarounds are:
1. Set a variable value before calling the macro. And then read the variable value in the macro.
2. Use Multiple (differently named) Subs that call the main sub, passing a parameter.
-Rob
correct.
Tkx
You can mark an answer as correct which will close the thread.
Rob