+ Reply to Thread
Results 1 to 5 of 5

Dynamic Charts VBA Excel For Loop even odd columns help

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Unhappy Dynamic Charts VBA Excel For Loop even odd columns help

    Hi everyone,

    Can someone please help me with the below code?

    I am quite new to VBA and I managed to find a code that solves my problem however there's a bit of error that I am not able to fix. Please see the code below:

    Please Login or Register  to view this content.
    Basically, the macro needs to loop through the columns and create charts based on the columns even or odd state. For example: Chart1 and Answer 1 should be one chart, Chart2 and Answer2 should be the next one and so on.
    Attached Files Attached Files
    Last edited by nolans18; 11-13-2013 at 06:01 PM.
    (._.) ( l: ) ( .-. ) ( :l ) (._.)

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

    Re: Dynamic Charts VBA Excel For Loop even odd columns help

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Try this variation.

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

  3. #3
    Registered User
    Join Date
    07-17-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Dynamic Charts VBA Excel For Loop even odd columns help

    Done. Could someone please help?

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

    Re: Dynamic Charts VBA Excel For Loop even odd columns help

    Did the code I posted not work? If so what error, if any, did it report?

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Dynamic Charts VBA Excel For Loop even odd columns help

    Thank you so very much Andy! Yes it works.

  6. #6
    Registered User
    Join Date
    07-17-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Smile Re: Dynamic Charts VBA Excel For Loop even odd columns help

    Hi Andy,

    Thanks for all your help so far. Meanwhile, I have tweaked the code a bit to suit my needs. Like now when we click on the macro button it creates a new workbook with the charts on it.

    Please Login or Register  to view this content.
    However, my question is whether we could copy the data as well? I mean for each chart the chart selection data should also be shown in the background. Will attach a sample for your reference. Hope this makes sense. Thank you
    Attached Files Attached Files

+ 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. VBA Plot Multiple Charts Using Loop Through Dynamic Range
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 07:38 AM
  2. Dynamic Columns and Rows Selecting all Loop
    By excel0831 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2012, 05:41 PM
  3. Loop through all charts excel the last 3.
    By TSMIII in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2011, 04:00 PM
  4. Dynamic Charts on Excel
    By larbac in forum Excel General
    Replies: 2
    Last Post: 06-04-2010, 07:15 PM
  5. Dynamic charts with alternating columns of data
    By hoffey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2010, 03:17 PM

Tags for this Thread

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