Word macro for printing from different tray HP2430

S

Sargey

Hi.

I'm having problems with a macro for printing a letter. One copy comes from
tray 2 (File copy) and the second comes from the manual feed (Headed paper)

The macro works fine on an HP 4050 printer.

The printer is getting replaced for a HP2430 but I cannot get the macro to
print from the new printers tray's

If I edit the macro, there is an entry .firstpagetray = wdPrinterManualFeed

I created a new macro with the new printer and the entry on the same line
came out as .firstpagetray = " Manual Feed in Tray 1"

If I try and change the old macro entry (.firstpagetray =
wdPrinterManualFeed) to .firstpagetray = " Manual Feed in Tray 1" the macro
won't run and gives me an error message asking to debug.

Can anyone see how I can change the old macro rather than creating a new one?
 
G

Graham Mayor

You can't make up your own vba syntax!

Different printers call their trays with different commands. Word has to
adapt to what the printer requires.

eg

ActivePrinter = "HP LaserJet 4050 Series PCL"
With ActiveDocument.PageSetup
.FirstPageTray = 257
.OtherPagesTray = 260
End With

ActivePrinter = "HP LaserJet 2200 Series PCL"
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterManualFeed
.OtherPagesTray = 258
End With

Both do the same thing but with different printers. The simplest approach
would be to set the 2340 as the active driver and record the page setup
requirements in a macro - then extract the required strings from all the
associated bumph and add them to your macro.

You might also have a look at tray assignements in
http://www.gmayor.com/fax_from_word.htm and
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=116

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Sargey

Hi Graham, thanks for the reply.

I didn't make up the syntax.

I created a new macro and when through the steps as I would normally.

The macro called the the tray " Manual Feed in Tray 1", that's where my
problem lies, i think.

Cheers
Sargey
 

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