From: Jean-Guy Marcil on
LDMueller was telling us:
LDMueller nous racontait que :

> Thank your for your response. This information was very helpful,
> however, I had cleaned it up initally and when it didn't work, I put
> everything back in.
>
> The following is my updated code, however it still doesn't work. We
> have Word 2003 and our printer is an HP Laserjet 4250.
>
> Selection.WholeStory
> With ActiveDocument.PageSetup
> .FirstPageTray = 262
> .OtherPagesTray = 260
> End With
>
How did you get those tray constants? (262, 260)
Those are printer specific, not Word specific.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE(a)CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org


From: LDMueller on
Those are the constants that came up after recording the macro setting the
paper sized for that particular printer.

"Jean-Guy Marcil" wrote:

> LDMueller was telling us:
> LDMueller nous racontait que :
>
> > Thank your for your response. This information was very helpful,
> > however, I had cleaned it up initally and when it didn't work, I put
> > everything back in.
> >
> > The following is my updated code, however it still doesn't work. We
> > have Word 2003 and our printer is an HP Laserjet 4250.
> >
> > Selection.WholeStory
> > With ActiveDocument.PageSetup
> > .FirstPageTray = 262
> > .OtherPagesTray = 260
> > End With
> >
> How did you get those tray constants? (262, 260)
> Those are printer specific, not Word specific.
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE(a)CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>
From: Jean-Guy Marcil on
LDMueller was telling us:
LDMueller nous racontait que :

> Those are the constants that came up after recording the macro
> setting the paper sized for that particular printer.
>

See if this page can help you out:
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE(a)CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org


From: LDMueller on
Yes, I saw that article awhile back. I tried using it and it did have a
window showing paper sizes, but I didn't really know what to do with the
information. This still didn't help me write a macro that worked.

Thanks anyway.

"Jean-Guy Marcil" wrote:

> LDMueller was telling us:
> LDMueller nous racontait que :
>
> > Those are the constants that came up after recording the macro
> > setting the paper sized for that particular printer.
> >
>
> See if this page can help you out:
> http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE(a)CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>
From: Jean-Guy Marcil on
LDMueller was telling us:
LDMueller nous racontait que :

> Yes, I saw that article awhile back. I tried using it and it did
> have a window showing paper sizes, but I didn't really know what to
> do with the information. This still didn't help me write a macro
> that worked.
>
> Thanks anyway.
>
> "Jean-Guy Marcil" wrote:
>
>> LDMueller was telling us:
>> LDMueller nous racontait que :
>>
>>> Those are the constants that came up after recording the macro
>>> setting the paper sized for that particular printer.
>>>
>>
>> See if this page can help you out:
>> http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101
>>


Did you look at the other three pages as well:

Controlling the Printer from Word VBA
Part 2: Using VBA to control Duplex, Color Mode and Print Quality
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=116

Controlling the Printer from Word VBA
Part 3: Dealing with Different Paper Sizes
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=132

Controlling the Printer from Word VBA
Part 4: Getting printer driver details
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=183

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE(a)CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org