Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Paper Type codes for VBscript Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jennifer Q - 01 Jun 2007 16:52 GMT
I would like to create a macro that will quickly assign a paper tray or
paper type to a document.

This is the code:
Sub tray()
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterManualFeed
.OtherPagesTray = wdPrinterManualFeed
End With
End Sub

But what I am missing are the codes for paper trays besides the Manual Feed.
I would also like to know the code for Letterhead type and Bond type.

Can anyone help out?

Thanks,
Jeni
old man - 01 Jun 2007 18:26 GMT
Hi,

this is from URL -
http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=101

Value Word
Constant Name

0
     wdPrinterDefaultBin

1
     wdPrinterOnlyBin

1
     wdPrinterUpperBin

2
     wdPrinterLowerBin

3
     wdPrinterMiddleBin

4
     wdPrinterManualFeed

5
     wdPrinterEnvelopeFeed

6
     wdPrinterManualEnvelopeFeed

7
     wdPrinterAutomaticSheetFeed

8
     wdPrinterTractorFeed

9
     wdPrinterSmallFormatBin

10
     wdPrinterLargeFormatBin

11
     wdPrinterLargeCapacityBin

14
     wdPrinterPaperCassette

15
     wdPrinterFormSource


> I would like to create a macro that will quickly assign a paper tray or
> paper type to a document.
[quoted text clipped - 14 lines]
> Thanks,
> Jeni
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.