Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I print alternate worksheets in Portrait and Landscape?

Say I have 10 worksheets.

I want to print #1, #3, #5, ... in Portrait and #2, #4, #6, ... in Landscape.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How do I print alternate worksheets in Portrait and Landscape?

Try

Sub PrintIt()

Dim sht As Worksheet

For Each sht In Worksheets
If sht.Index Mod 2 = 0 Then
sht.PageSetup.Orientation = xlLandscape
Else
sht.PageSetup.Orientation = xlPortrait
End If
sht.PrintOut Copies:=1
Next sht

End Sub

Regards
Rowan

"BIEDW" wrote:

Say I have 10 worksheets.

I want to print #1, #3, #5, ... in Portrait and #2, #4, #6, ... in Landscape.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default How do I print alternate worksheets in Portrait and Landscape?

Try this, it is crude but should work:

Sub PrintAltFmt()
Dim Frmt As Boolean

For Each ws In ActiveWorkbook.Worksheets
Frmt = Not Frmt
If Frmt Then
ws.PageSetup.Orientation = xlPortrait
Else
ws.PageSetup.Orientation = xlLandscape
End If
ws.PrintPreview
Next ws
End Sub


--
|
+--Thief_
|


"BIEDW" wrote in message
...
Say I have 10 worksheets.

I want to print #1, #3, #5, ... in Portrait and #2, #4, #6, ... in

Landscape.


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
Orientation Landscape but want Page #s to Print Portrait vcollins Excel Discussion (Misc queries) 1 November 15th 07 11:58 PM
Print one page landscape and one portrait ndrinkwater Setting up and Configuration of Excel 0 November 13th 07 02:14 PM
Portrait/Landscape print issue honestlylion Excel Discussion (Misc queries) 1 February 17th 06 05:35 PM
Print both Portrait and Landscape - Excel Georgie77 Excel Discussion (Misc queries) 8 June 1st 05 12:18 AM
Print Landscape AND Portrait Orientation in ONE Worksheet Paul Martin Excel Programming 0 July 15th 03 11:21 PM


All times are GMT +1. The time now is 09:41 AM.

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"