+ Reply to Thread
Results 1 to 1 of 1

Macro to generate or copy a pie chart based in new data of individual columns

  1. #1
    Registered User
    Join Date
    08-04-2014
    Location
    Mexico
    MS-Off Ver
    2007
    Posts
    1

    Macro to generate or copy a pie chart based in new data of individual columns

    Hello guys I need the support of the experts, I have been looking for a similar question and could not find ideas for the following issue:

    I have something like this:

    Column A Column B Column C
    1 Material $281.34 65.9%
    2 Labor $34.02 8.0%
    3 OH $27.76 6.5%
    4 Depreciation $4.97 1.2%
    5 Others $35.09 8.2%
    6 Margin $43.52 10.2%
    _____________________________
    7 Total $426.69 100.0%

    75 Pie Chart b75:c86 (Pie chart based in A1:A6,C1:C6)

    Columns B & C contains formulas, every time that I change my inputs the formulas are updated.
    I have a button that copy both columns, then insert them to the left as only values and leave the columns with formulas always to the right ready to add new inputs.
    My issue is because the pie chart is bellow, and every time that I press the button the pie chart always contain the initial data (A1:A6,C1:C6)
    And I' d like an additional code to auto select of this way:
    - Initial Pie Chart In B75:C86 selecting data from A1:A6,C1:C6 (letter arial narrow size 8, no title)
    After pressing a button the columns B:D are copied and pasted as values to the left, and new columns E:G are left to the right with formulas
    - 2nd pie chart In E75:F86 selecting data from A1:A6,F1:F6 (letter arial narrow size 8, no title)
    After pressing a button the columns E:G are copied and pasted as values to the left, and new columns H:J are left to the right with formulas
    - 3rd pie chart In H75:I86 selecting data from A1:A6,I1:I6 (letter arial narrow size 8, no title)
    Repeat the loop n times that I press the button.

    I'd appreciate your support very much.
    Attached Files Attached Files
    Last edited by Oscar Buros; 08-04-2014 at 11:10 AM. Reason: add attachment

+ 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. Macro to filter data and copy the data's from multiple columns based on the criteria
    By millatshawn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 08:14 AM
  2. How do i generate the chart for my data using macro?
    By yue long in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2013, 04:45 AM
  3. [SOLVED] generate pie chart based on changing data area
    By mattmorris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2012, 09:18 AM
  4. copy data to individual columns automatically
    By rushdenx1 in forum Excel General
    Replies: 1
    Last Post: 08-04-2010, 07:09 AM
  5. Copy data to an individual file based on drop down list
    By xlnewbe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-05-2007, 01:52 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