I designed a template with an autoopen macro in it. We posted a link to the
template on our Intranet but the autoopen macro did not execute -- no errors,
but nothing happened.
So I decided to try another way of executing the macro; instead of autoopen,
I created a macro named "startdoc".
Then we used the startup switch "/mstartdoc" in our html page -- example:
winword.exe [templatename] /mstartdoc
This did not work either.
So my question is how can I open a template and execute a macro from an html
page?
It's deliberately designed so that you can't do this. In the general case
one does not want code running automatically when a word document is opened
from a browser. I'm afraid there is, as far as I know, no way, and certainly
should be no way, round it.
--
Enjoy,
Tony
> I designed a template with an autoopen macro in it. We posted a link to the
> template on our Intranet but the autoopen macro did not execute -- no errors,
[quoted text clipped - 10 lines]
> So my question is how can I open a template and execute a macro from an html
> page?