Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i print 9 word doc copies from vbscript??

Status
Not open for further replies.

diembi

Programmer
Sep 22, 2001
238
ES
Hello!!
How can i print 9 word doc copies from vbscript??
In vba there is a parameter (copies:=9) but in vbscript that parametrer is not right.

Thanks!!!!
 
VBScript doesnt support named arguments; therefore, you must pass parameters by their ordinal position. And by my calculation, the copies parameter is the 8th parameter of the printout method.

Set oWord = CreateObject("Word.Application")
oWord.Documents.Open "C:\myfile.doc"
oWord.PrintOut False,,,,,,,9
oWord.Quit
Set oWord = Nothing Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top