View Single Post
  #2   Report Post  
Jezebel
 
Posts: n/a
Default Attaching a template to a document - when opened on other computer

For future reference: you need to solve these problems BEFORE you start
writing code. The problem is, there are no simple solutions for you. You
want people to run code that you've written. That's exactly what virus
writers want also. So in order to keep out the viruses, there's no choice
but to make legitimate code-writers jump through some hoops. If you want
poeple to run your code, you need to put it up front and get them to choose
to install it. No-one in their right minds is going to run code in a
document on the internet; and -- assuming you are a responsible developer
and not a virus-writer yourself -- you shouldn't do anything that might
encourage people to do so.

If you have developed code, then what you offer is an application. Certify
it and provide a legitmate installation/deinstallation method.





"westis" wrote in message
...
Ok, I have created a macro that removes the header when printing a
document.
Now this document will be opened by users on several different computers
in a
network (and possibly also computers outside the network).

How can I attach this macro to the document, so that wherever it is opened
the option to print without headers is available? Can I add an alternative
print button in the body or header of the document that users simply can
click?

The problem is that most users will open the document from a database in
IE
and won't have the Word toolbars at hand (or they will first have to save
the
document to their computer and open it). What I would like then is an
easily
available option for users to print without the header (using the macro),
without having to save the document on their computer first.

I have read the excellent guide on the Word MVP site about distributing
macros to other users. But 1) this would mean I have add the template with
the macro on every computer first and 2) is the macro available if only
opening the document within IE from the online database?

Thanks!