Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some VBA code (see below) to automate some printing tasks. But
as you can see, it will always print to the user's default printer. Sometimes this is not what the user wants. What do I need to insert into the code so that instead, the user receives a Print dialog box whereby they can choose their preferred printer. Regards, Darren With ActiveSheet.PageSetup .Zoom = False .Orientation = xlPortrait .FitToPagesWide = 1 .FitToPagesTall = 3 .CenterHorizontally = True .PrintTitleRows = "$1:$3" .PrintTitleColumns = "" .CenterFooter = "&""Arial,Bold Italic""www.austbook.net" End With Selection.PrintOut Copies:=1 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
use this:
Application.Dialogs(xlDialogPrinterSetup).Show With ActiveSheet.PageSetup .Zoom = False .Orientation = xlPortrait .FitToPagesWide = 1 .FitToPagesTall = 3 .CenterHorizontally = True .PrintTitleRows = "$1:$3" .PrintTitleColumns = "" .CenterFooter = "&""Arial,Bold Italic""www.austbook.net" End With Application.Dialogs(xlDialogPrinterSetup).Show Selection.PrintOut Copies:=1 -- Gary "Darren" wrote in message ... I have some VBA code (see below) to automate some printing tasks. But as you can see, it will always print to the user's default printer. Sometimes this is not what the user wants. What do I need to insert into the code so that instead, the user receives a Print dialog box whereby they can choose their preferred printer. Regards, Darren With ActiveSheet.PageSetup .Zoom = False .Orientation = xlPortrait .FitToPagesWide = 1 .FitToPagesTall = 3 .CenterHorizontally = True .PrintTitleRows = "$1:$3" .PrintTitleColumns = "" .CenterFooter = "&""Arial,Bold Italic""www.austbook.net" End With Selection.PrintOut Copies:=1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User choice listed in cell. | Excel Worksheet Functions | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Prompt user to select a printer using a checkbox within a user | Excel Programming | |||
Start Macro after user selects a choice from a pick list | Excel Discussion (Misc queries) | |||
How to capture when a User changes the printer | Excel Programming |