+ Reply to Thread
Results 1 to 3 of 3

vba to switch columns to rows in a line chart

  1. #1
    Forum Contributor
    Join Date
    03-13-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    136

    vba to switch columns to rows in a line chart

    I have the following code:

    Please Login or Register  to view this content.
    The problem is that each series is in a row but it seems to think that the series data are in columns. I know that manually I can right click the chart, select "Select Data" and click on the "Switch Row/Column" button to fix it but I can't figure out how to do this in code. The macro recorder was no help as it only gave me this when I ran through the sequence manually.

    Please Login or Register  to view this content.
    Any help would be appreciated!
    Last edited by jerseyguy1996; 11-05-2009 at 01:27 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: vba to switch columns to rows in a line chart

    untested

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-13-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    136

    Re: vba to switch columns to rows in a line chart

    Quote Originally Posted by Andy Pope View Post
    untested

    Please Login or Register  to view this content.
    That worked perfectly! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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