Hello. I'm currently working on a tool for an intranet that allows a
user to launch a Word document template from an HTML page on a corporate
portal.
I would now like to run a particular macro in the template, determined
by the hyperlink selected. But the slash is causing problems - the
hyperlink reads it as a subdirectory.
Here's the code in the page now.
In the header I have this script:
<script language="JavaS cript" type="text/JavaScript">
<!--
function MM_openBrWindow (theURL,winName ,features) { //v2.0
window.open(the URL,winName,fea tures);
}
function MM_callJS(jsStr ) { //v2.0
return eval(jsStr)
}
function close_window() {
window.close();
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL .arguments; document.MM_ret urnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args[i]+".location='"+ args[i+1]+"'");
}
//-->
</script>
In the body of the HTML PAGE, I have the following link:
<a href="#" target="_blank"
onClick="MM_goT oURL('parent',' Template.dot'); return
document.MM_ret urnValue" onfocusout="clo se_window()">La unch Word
Template</a>
I can't seem to find where I would add the /mmacroname reference.
Any suggestions would be greatly appreciated.
Thanks,
David
da*******@aol.c om