[Solved] Macro Code for Duplex Printing

文章推薦指數: 80 %
投票人數:10人

Word VBA>Macro Code for Duplex Printing. Leftovercity 08:26 AM 01-26-2017. Hi Everyone, First time on here. I'm new to Macros but got one working that ...   MicrosoftOfficeForums >MicrosoftWord >WordVBA MacroCodeforDuplexPrinting UserName RememberMe? Password Register FAQ Search Today'sPosts MarkForumsRead   ThreadTools DisplayModes   #1  01-26-2017,08:26AM Leftovercity MacOSXOffice2016 Novice   JoinDate:Jan2017 Posts:3 MacroCodeforDuplexPrinting HiEveryone, Firsttimeonhere.I'mnewtoMacrosbutgotoneworkingthatcreatessequentialnumberingpagetopage.ButnowmyissuesisthatthedocumentIneeditforistwopagesandIneedittobeprintedtwosided(Duplex).WhenIruntheMacroitbypassestheprintersettingwindowandprintstwoindividualpages.IsthereaMacrocodeIcanaddtorunduplexprinting? Here'smycurrentcode: Code: DimMessageAsString,TitleAsString,DefaultAsString,NumCopiesAsLong DimRng1AsRange 'Setprompt. Message="Enterthenumberofcopiesthatyouwanttoprint" 'Settitle. Title="Print" 'Setdefault. Default="1" 'Displaymessage,title,anddefaultvalue. NumCopies=Val(InputBox(Message,Title,Default)) SerialNumber=System.PrivateProfileString("C:\Settings.Txt",_ "MacroSettings","SerialNumber") IfSerialNumber=""Then SerialNumber=1 EndIf SetRng1=ActiveDocument.Bookmarks("SerialNumber").Range Counter=0 WhileCounter



請為這篇文章評分?