+ Reply to Thread
Results 1 to 9 of 9

Data copy paste loop

Hybrid View

  1. #1
    Registered User
    Join Date
    03-13-2015
    Location
    london
    MS-Off Ver
    excel 2013
    Posts
    19

    Data copy paste loop

    Hi There

    I am fairly new to the world of excel vb, was wondering if you could provide some help please. From the attached spreadsheet, I have a pivot table. What I like to do, via vb, is be able to select every item from the I:1, pivot table dropdown filter, one at a time and loop through, every time value changes in I:1, updates the pivot and copy range H3:I12, then paste to another workbook TEST "SHEET1". Loop back to attached file filter B:3, copy paste same range and paste to another workbook TEST "SHEET2" and so on so forth.

    Please can some one help.


    Many thanks
    Attached Files Attached Files
    Last edited by rizabdullah; 05-20-2016 at 10:31 AM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data copy paste loop

    There is no attached file.

    Also you can just create a pivot for each filter item.
    http://www.pivot-table.com/2012/10/2...ch-pivot-item/
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-13-2015
    Location
    london
    MS-Off Ver
    excel 2013
    Posts
    19

    Re: Data copy paste loop

    Apologies about the attachment. I have now successfully uploaded the attachment. I will have 160 filter items, hence like to automate it via vb.

    Many thanks

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data copy paste loop

    Did you click on my link that shows you how to automatically do it with the native functionality?

  5. #5
    Registered User
    Join Date
    03-13-2015
    Location
    london
    MS-Off Ver
    excel 2013
    Posts
    19

    Re: Data copy paste loop

    Excellent that works like a magic, many thanks.
    Just a quick question, furthermore, if instead of pivot table if we have excel dropdown list based on data from other sheet; how can I loop through the dropdown list and copy/paste the data below the dropdown list to another workbook different worksheets based on the value from dropdown list.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data copy paste loop

    You would have to write code to do specifically what you want.

  7. #7
    Registered User
    Join Date
    03-13-2015
    Location
    london
    MS-Off Ver
    excel 2013
    Posts
    19

    Re: Data copy paste loop

    any sample you could provide please

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data copy paste loop

    I am on my phone, which is why I typically suggest the easy method.
    Plus you can ask google for examples.

  9. #9
    Registered User
    Join Date
    03-13-2015
    Location
    london
    MS-Off Ver
    excel 2013
    Posts
    19

    Re: Data copy paste loop

    Oh ok, no worries. I am not in rush can wait till after the weekend. Please let me know if and when you can assist.

+ 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. [SOLVED] Loop macro to copy and paste historical data
    By ejou11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2015, 06:30 AM
  2. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  3. Copy Paste and Loop till last column with data
    By eirumba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2011, 07:23 AM
  4. Loop to Copy/Paste Defined Data
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2011, 02:31 PM
  5. Macro copy paste data loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2010, 09:34 PM
  6. Copy and paste data in a loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2010, 05:05 AM
  7. Copy paste data based on criteria in a loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2010, 08:14 AM

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