Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default landscape printing

what is the order when changeing to landscape printing. Does it need to be
done first or does it matter where in the procedure you do it. Have tried to
move pagesetup around for printing still problems here is code I have got As
you can see its been put all around. Anyone have an idea
Thanks

Sheets("Announcer").Select
With Selection
' ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
.pagesetup.PrintArea = "A2:F" & Cells(Rows.Count, "B").End(xlUp).Row
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End With

Columns("F").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.MergeCells = False
End With
Range("G2").Select
Sheets("Announcer").Select
' With Selection
' ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' .pagesetup.PrintArea = "A2:F" & Cells(Rows.Count, "B").End(xlUp).Row
'End With

With ActiveSheet.pagesetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.75)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = -3
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 100
End With
' Range("G2").Select
' Sheets("Announcer").Select
' With Selection
' ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' .pagesetup.PrintArea = "A2:F" & Cells(Rows.Count, "B").End(xlUp).Row
' End With
ActiveSheet.pagesetup.PrintArea = ""
Range("G4").Select
' ActiveSheet.pagesetup.PrintArea = ""
' Range("G4").Select
End Sub
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
Landscape printing: userform BG Excel Programming 3 June 19th 19 02:18 PM
Printing in Portrait & Landscape Peter D Excel Discussion (Misc queries) 1 August 21st 08 03:14 AM
Landscape printing? Elly New Users to Excel 2 February 24th 06 07:38 PM
Printing in landscape jdarting Excel Discussion (Misc queries) 1 December 14th 04 09:11 PM
landscape printing. Knadn416 Excel Discussion (Misc queries) 1 December 3rd 04 03:34 AM


All times are GMT +1. The time now is 06:57 PM.

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

About Us

"It's about Microsoft Excel"