How do I add a button to a document that causes several documents.

C

clubvw

How can I add a button to a document that causes several microsoft word
documents to print when the button is clicked? Is this even possible?
 
G

Graham Mayor

By what criteria are the documents to print chosen?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
C

Chuck

If you want to add a button to a form, open the Control Toolbox toolbar (View
Toolbars > Control Toolbox) and choose the Button control, then draw it on
your document.

If you want to add code to the button, double click on the button and the
VBE will open.

The code is up to you. For instance to print documents doc1.doc and
doc2.doc the code would be:

Application.PrintOut FileName:="c:\temp\doc1.doc"
Application.PrintOut FileName:="c:\temp\doc2.doc"

Obviously you can get a lot fancier in terms of what to print where but that
should get you started...
 
C

Clubvwbeetle

Excellent! Thanks Chuck. Clubvw. :)

Chuck said:
If you want to add a button to a form, open the Control Toolbox toolbar (View
your document.

If you want to add code to the button, double click on the button and the
VBE will open.

The code is up to you. For instance to print documents doc1.doc and
doc2.doc the code would be:

Application.PrintOut FileName:="c:\temp\doc1.doc"
Application.PrintOut FileName:="c:\temp\doc2.doc"

Obviously you can get a lot fancier in terms of what to print where but that
should get you started...
 

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

Top