+ Reply to Thread
Results 1 to 4 of 4

print chart in landscape

  1. #1
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    print chart in landscape

    i currently use this VBA

    PHP Code: 
    Sub printChart()
    Range("AV41").Select
    Do
    Range("R6").Formula ActiveCell.Value
    Sheets
    ("ConsultantTrends").Activate
        ActiveSheet
    .ChartObjects("Chart 3").Activate
        ActiveWindow
    .SelectedSheets.PrintOut Copies:=1Collate:=True_
            IgnorePrintAreas
    :=False
    ActiveCell
    .Offset(10).Select
    Loop Until IsEmpty
    (ActiveCell) = True

    End Sub 
    to print my chart, but i will like it to change orientation to Landscape. i ammended it to

    PHP Code: 
    Sub printChart()
    Range("AV41").Select
    Do
    Range("R6").Formula ActiveCell.Value
    Sheets
    ("ConsultantTrends").Activate
        ActiveSheet
    .ChartObjects("Chart 3").Activate
        ActiveSheet
    .PageSetup.Orientation xlLandscape
        ActiveWindow
    .SelectedSheets.PrintOut Copies:=1Collate:=True_
            IgnorePrintAreas
    :=False
    ActiveCell
    .Offset(10).Select
    Loop Until IsEmpty
    (ActiveCell) = True

    End Sub 
    but it still printed in portrait.... did i do wrong?

  2. #2
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    Re: print chart in landscape

    bump . . .

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: print chart in landscape

    I think you must set the page setup for the chart:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    369

    Re: print chart in landscape

    Thank you, i knew i did something wrong...lol

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macros to print landscape.
    By Dibbley247 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 03:48 PM
  2. Can't display or Print in Landscape
    By Gill Gamesh in forum Excel General
    Replies: 0
    Last Post: 08-08-2012, 12:34 PM
  3. Excel 2007 : Print Problem in landscape
    By Tiarella in forum Excel General
    Replies: 1
    Last Post: 08-31-2010, 06:16 PM
  4. Print Landscape
    By z0rpia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2009, 11:52 PM
  5. [SOLVED] won't print in landscape
    By mike in forum Excel General
    Replies: 1
    Last Post: 01-09-2006, 02:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1