• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Print both Portrait and Landscape

Shazz

Member
Good Afternoon,

I want to format a document in excel where Page 1 prints as Landscape and Page two in the same tab prints as Portrait, can anyone tell me if this is possible and if so how?

Shazz
x
 
Hi,

This is possible with VBA!!

Code:
Sub print_ws()
Dim i As Integer
With Sheet2
    For i = 1 To .PageSetup.Pages.Count
        .PageSetup.Orientation = (i Mod 2) + 1
        .PrintOut i, i, 1
    Next
End With
End Sub
 
So will this code print sheet 1 as landscape and sheet 2 as Portrait?

Where do i put the code?

Shazz
x
 
Hi,

What i got is to print the page in landscape /Portrait a sheet... as said in #1 but #3 you asked to print sheet1/sheet2 in that way..

First clear your requirement!
 
Y
That's a bit rude, I am very new to Excel and still finding my feet.

Its not rude.
Mr bob is one of the senior member here & what he advised: if followed the same in a nice gesture then it will take strength to stand ur feet as well.
 
Back
Top