• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Duplex 2-up printing (VBA for MS Word?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplex 2-up printing (VBA for MS Word?)


  • Subject: Duplex 2-up printing (VBA for MS Word?)
  • From: Nathan Bailey <email@hidden>
  • Date: Mon, 10 Sep 2007 14:51:14 +1000

I am having problems trying to achieve this outcome:
Print the current document in 2-up duplex (ie. scale pages to 2 pages per page and use double-sided printing)


I have a script:
=====
do shell script "makedoc" -- creates an MS Word document and opens it
tell application "Microsoft Word"
activate
--still need to work out (a) how to set duplex and (b) how to do pages per sheet when PrintZoomColumn doesn't seem to work
do Visual Basic " ActiveDocument.PrintOut Range:=wdPrintFromTo, From:=\"1\", To:=\"4\""
close windows saving no
end tell
=====
I found this message in the archives:
http://lists.apple.com/archives/applescript-users/2006/Apr/msg00176.html
but without any direct advice to address it.


By googling, I've found that there is some VBA ("SetDuplex 3") and an argument to PrintOut (PrintZoomColumn:=2) that will do what I want, but MS Word (Word 2004, Version 11.3.5) doesn't seem to recognise PrintZoomColumn as a valid argument or SetDuplex 3 as a valid function (I presume it needs some context I am missing).

I have a printer preset in the printer dialog called "2-up duplex" which, if I could select, I would be happy! :-)

thanks for any help/guidance!
Nathan
PS: "close windows saving no" probably doesn't do what I want, but once I get everything else working, I'll work out how to only close the current document in AppleScript -- or you can correct me :-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
  • Prev by Date: Re: System Proxy Settings
  • Next by Date: Re: Local and remote disks
  • Previous by thread: Re: Playing one song using iTunes
  • Next by thread: Finder error
  • Index(es):
    • Date
    • Thread