I use a HP Laserjet 4050

Is it possible to select the source of the paper when printing via VBA?

It has Tray 1, Tray 2 and Manual feed.
I'd like to be able to automate printing a document using VBA, where
that document uses different coloured paper. I had a look at the HP
site, but failed to find anything relevant.

Re: Set paper source when printing from VBA? by Margaret

Margaret
Fri Aug 15 09:32:41 CDT 2003

I think the one you mean is

http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101

However, for a particular printer you can simply look at the value of
activedocument.pagesetup.firstpagetray and .otherpagestray when you make
these settings from File > Page Setup, and then use that information to set
them from code.

--
Margaret Aldis - Microsoft Word MVP
Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.mvps.org/word


"Russ Crowley" <crowler@norwich-union.co.uk> wrote in message
news:09f401c36335$79413940$a601280a@phx.gbl...
> Try this link:
>
> http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?
> ID=116
>
> Russ
> >-----Original Message-----
> >I use a HP Laserjet 4050
> >
> >Is it possible to select the source of the paper when
> printing via VBA?
> >
> >It has Tray 1, Tray 2 and Manual feed.
> >I'd like to be able to automate printing a document using
> VBA, where
> >that document uses different coloured paper. I had a
> look at the HP
> >site, but failed to find anything relevant.
> >.
> >