Question: launching a Word template with the /mmacroname modifierfrom an intranet page

D

David Zack

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="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

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_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args+".location='"+args[i+1]+"'");
}
//-->
</script>


In the body of the HTML PAGE, I have the following link:

<a href="#" target="_blank"
onClick="MM_goToURL('parent','Template.dot');return
document.MM_returnValue" onfocusout="close_window()">Launch Word
Template</a>


I can't seem to find where I would add the /mmacroname reference.

Any suggestions would be greatly appreciated.

Thanks,
David
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top