Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Printpreview and Printout are not a part of the PageSetup
If you only want to print the range SHAUGATHCHG use this line then .Range("SHAUGATHCHG").PrintOut Copies:=1 Sub Print_Gathering_Detail() With Sheets("Gath_Chg").PageSetup .PaperSize = xlPaperLegal .FitToPagesWide = 1 .FitToPagesTall = 1 .Orientation = xlLandscape End With With Sheets("Gath_Chg") .Range("SHAUGATHCHG").PrintPreview .PrintOut Copies:=3 End With End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Bruce Roberson" wrote in message ... I want to see if I can put the number of copies I want printed in a macro with Sheets statement. The line below is a recorded statement when I chose to change the number of copies to 3. And I if I run this macro below, it prints it out before it gets to print preview. I want to print preview first. I tried ".copies = 3" in the With sheets section, but Visual Basic balked at the syntax. Sub Print_Gathering_Detail() With Sheets("Gath_Chg").PageSetup .PaperSize = xlPaperLegal .FitToPagesWide = 1 .FitToPagesTall = 1 .Orientation = xlLandscape End With ActiveWindow.SelectedSheets.PrintOut Copies:=3 Range("SHAUGATHCHG").PrintPreview |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Number of copies to print keep defaulting to 12 copies why? | Excel Worksheet Functions | |||
print defaults at 20 copies | Excel Discussion (Misc queries) | |||
ask for one print and it gives 6 copies | Excel Discussion (Misc queries) | |||
print number of copies | Excel Discussion (Misc queries) | |||
Print number of copies | Excel Discussion (Misc queries) |