Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Print Copies in with statement?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of copies to print keep defaulting to 12 copies why? Boski Excel Worksheet Functions 1 October 8th 09 05:33 PM
print defaults at 20 copies KneeDown2Up Excel Discussion (Misc queries) 2 July 13th 07 05:50 PM
ask for one print and it gives 6 copies raybag Excel Discussion (Misc queries) 0 October 17th 06 03:03 AM
print number of copies Sunny Excel Discussion (Misc queries) 1 August 29th 06 05:00 PM
Print number of copies Tarique Excel Discussion (Misc queries) 2 April 24th 06 07:45 PM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"