+ Reply to Thread
Results 1 to 4 of 4

Run a loop to slected data then filter on another sheet and copy to another sheet

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    18

    Run a loop to slected data then filter on another sheet and copy to another sheet

    Hello Everyone.

    I require some help on my macro. What i want to do is the following. I have 3 sheets.

    Sheet 1 ("Macro Value Set"):
    Sheet 2 ("Data")
    Sheet 3 ("Output")
    This sheet checks the second sheet to see if there is data accoring to the specific account. Should there be data the sheet will indicate "1". Therefore if the data is there the macro should then filter Sheet2 ("Data") accoring to the active cell in Sheet 1 offset by one column to the lefts value. After it has then filtered the sheet it should copy the data from sheet 2 to sheet 3 ("Output"). After it has copied it should then go back to sheet 1 and offset to the next row and perfomr the check again and if value is 1 then it should perform the process again. Should the value be 0 and not 1 in sheet 1 it should just move to the next cell. The macro should loop until the first empty cell is reached in sheet1.

    At current my code looks like this but I get a lot of errors would you guys please be so kind to assists me with this.
    Thanks in advance for your assistance.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Run a loop to slected data then filter on another sheet and copy to another sheet

    I came up with this, but without an actual sample to test I can't be sure (use a copy of your file too test). Maybe you can attach a file with some sample data.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Run a loop to slected data then filter on another sheet and copy to another sheet

    Hello John,

    This works PERFECTLTY!!! Thank you very much for your help, it is much appreciated!

    Regards Len

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Run a loop to slected data then filter on another sheet and copy to another sheet

    You're welcome, Len. Glad to help out and thanks for the feedback.

+ 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. Replies: 1
    Last Post: 06-05-2013, 07:03 AM
  2. Copy Data from Multiple weekly Sheet to Monthly sheet and filter the data
    By santhoshjoseph in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 07:07 AM
  3. Loop through filter and copy subtotal from cell NOT in table to other sheet
    By MStaretorp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2012, 02:41 PM
  4. [SOLVED] Copy data with loop to other sheet
    By esbenhaugaard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2012, 01:50 PM
  5. Filter, copy filtered data into another sheet, create a file of that sheet..
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-17-2012, 02:26 PM

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