+ Reply to Thread
Results 1 to 6 of 6

Copy paste data after filter

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    79

    Copy paste data after filter

    Hi
    I need a help to create a macro. In the attached sheet I have a tab named Raw data. One of the fields in that sheet is PID column “B”. I have different tab for each PID.
    Now…

    1. I have to filter each PID from column B, copy the data for all the column and paste it to respective tab. For example I have to filter “AA0967” copy the data and paste it in “AA0967” sheet in the respective area.
    2. I have to do it for all the PID

    I’ve given a sample. No of data is huge , so if it is possible to write a macro code it will help me a lot.

    I have tried but having some issue. Each time I’m filtering the PID, cell ref getting changed.

    Any help will be much appreciated ………..
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy paste data after filter

    hi, Abhijit2011, please check attachment, run code "test"

    PS. In order for the code to run Sheet "Raw Data" and Sheet "Template" should exist.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    79

    Re: Copy paste data after filter

    Excellent! Working gr8
    Thanks pal

    But actually there is another reuirement which forgot to mention. In the actual data there will be hundreds of PIDs (column B). But i need it for 10 projects from my area only.when i tried this macro in my original sheet it created separate tab for all the PIDs where as i need it for 10 only. For example here i needs the data for all except "BB2333" and "EE2677". How will i do it?

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy paste data after filter

    please check attachment, run code "test"

    The data will go to all the sheets except "Raw Data" and "data"
    Attached Files Attached Files
    Last edited by watersev; 07-01-2011 at 02:11 PM.

  5. #5
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    79

    Re: Copy paste data after filter

    excellent!!!!!!!! U R gr8. Many thanks

  6. #6
    Registered User
    Join Date
    06-09-2011
    Location
    Leeds, UK
    MS-Off Ver
    MS Office 2016
    Posts
    79

    Re: Copy paste data after filter

    Please mark this as solved as i'm not able to do it.

+ 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