vba - How to show print dialog box and have preview display on same screen -
i trying emulate ctrl-p
in excel 2013 print dialog box shown on left print preview on right.
(although preview displays, have click "show print preview"
first - can't seem find way force preview show every time).
i have tried following:
application.dialogs(xldialogprint).show
this shows old style dialog box need click "preview" button
activesheet.printpreview
this shows preview doesn't allow printer changed same screen
something this?
option explicit sub example() application.commandbars.executemso ("printpreviewandprint") end sub
commandbars.executemso method (link) is useful method in cases there no object model particular command.
Comments
Post a Comment