Simple Printing Macros won't work

K

KathyM

Hi,
I'm working with Word 2003 and have created several form templates. My
client also needs to print on colour paper, white and letterhead for the same
document. Because a form is protected, the page layout option is disabled so
the only way to print and change paper trays is to:

File, Print, Printer Properties, change trays, click OK.

This is basically what the macros do; one for each colour paper/print job.
I added these macros to a custom toolbar and loaded it through a startup
template.

It worked fine of course until I loaded it on everyone's computer and now it
won't print basic print jobs.

Is there something that would disable a very simple command macro from
working within Word 2003? Am I missing something?

The security within Word is set to Medium. The users either get a runtime
error or it doesn't work at all.

Any help is appreciated,
 
D

Dave Lett

Hi Kathy,

Can you send a sample of the routine you created to print your forms ?
Can you send a sample of the routine to load the toolbar through the startup
template?

Dave
 
K

KathyM

This is the macro that I wrote to print. Again, it just redirects the
printer trays. If you can think of why it won't work when I roll it out to
other pc's let me know. Unfortunately I can't send the template but it is
blank other than the toolbar.

Sub Print_Plain()
'
' Print_Plain Macro
' testing
'
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub
 
D

Dave Lett

Hi Kathy,

I don't see a problem with the routine. You wrote that you "added these
macros to a custom toolbar and loaded it through a startup template".
So you created a code template that has 1) print routines and 2) a toolbar
to activate/run those print routines. Correct?
You "loaded it" through a start up template. What is "it": the toolbar or a
template containing the toolbar? Or, did you save the code template (from
the question above) into the startup directory on the user's machine, which
would load the toolbar into Word each time you start Word?

What I'm getting at, is if the code works, then the problem has to be
somewhere else, such as the scope/availability of the routine that you're
trying to invoke through the toolbar, or maybe the reference to the routine
isn't exactly correct.

Dave
 
K

KathyM

Hi Dave,

I sent you a copy of the template that i created with the custom printing
macros.

thanks in advance for your time,
Kathy
 

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