+ Reply to Thread
Results 1 to 6 of 6

create line diagram

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    32

    create line diagram

    I want to create line diagram, which reads columns E2:En as x-axis & B2:Bn.
    i just have no idea how to do it.
    this is what I have found in internet:

    Range("B2").Select
    Set x_values = ActiveCell.EntireColumn
    Range("E2").Select
    Set y_values = ActiveCell.EntireColumn

    but have no idea how to continue.
    would someone do me a favor and help me?
    Attached Files Attached Files
    Last edited by frhling; 12-21-2012 at 07:58 AM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: cre

    I suggest you record a macro while creating the chart as you want it formatted then just alter the part where you set the data source. if you need assistance with that post the code the recorder produces
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: create line diagram

    Thanks.
    here is the macro which is created by macro recorder:
    Please Login or Register  to view this content.
    1- when I want to test it for other data, it gives me error:
    Please Login or Register  to view this content.
    2- The columns are fixed but not my row numbers. how can I set it till it looks for end of rows?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: create line diagram

    try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: create line diagram

    wow. you helped me alot. Thanks

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: create line diagram

    you're welcome :-)

+ 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