Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Opening Templates from the Intranet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klav - 06 Oct 2006 20:31 GMT
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?
Tony Jollans - 06 Oct 2006 21:02 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.