+ Reply to Thread
Results 1 to 8 of 8

Filter specific Text from column and copy to Target sheet

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Filter specific Text from column and copy to Target sheet

    Hello,

    I'm using below code to copy the data from "Raw Data" to "ProjectSummary" tab.

    Please Login or Register  to view this content.
    My further requirement is that, rather than copying all the rows to "ProjectSummary", I want macro to look for a text "Positive" in column AO (Raw Data tab) and only copy the "Positive" row data to "Project Summary" tab. Sample attached for reference.

    Please suggest with changes in the above code.

    Thanks !
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Filter specific Text from column and copy to Target sheet

    Just add another filter below existing...See red snippet
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Filter specific Text from column and copy to Target sheet

    Well ! i've made some changes to the code which I posted in my first thread

    Please Login or Register  to view this content.
    where can i apply the filter to copy "positive" rows ?

    Thanks !

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Filter specific Text from column and copy to Target sheet

    The sample code in above post does not include listobjects...
    I cannot give you this answer as I do not have the file...
    Is column AO part of the table...
    Then this...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Filter specific Text from column and copy to Target sheet

    Well ! I added one more filter as :

    Please Login or Register  to view this content.
    This allowed to copy and paste the Positive row to the target sheet.

    But if there is only "Negative" rows in the "owssvr" tab, I should get a msg box as "No Data found"

    Thanks !

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Filter specific Text from column and copy to Target sheet

    Don't have your file to test so adjust this snippet for listobject...
    I am guessing though with your setup, this should be your full code....
    Please Login or Register  to view this content.
    Last edited by sintek; 04-02-2020 at 03:42 AM.

  7. #7
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Filter specific Text from column and copy to Target sheet

    Hi Sintek,

    I made some changes to the code provided by you and was able to fix the issue.

    Thanks ! for your support as always.

    Cheers.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Filter specific Text from column and copy to Target sheet

    Pleasure...glad I could help...

+ 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] Copy specific column data from one sheet to another sheet using Certain filter Criteria
    By xlhelp7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2017, 12:09 AM
  2. Filter column by text and copy to another sheet
    By Grens in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2016, 10:05 AM
  3. [SOLVED] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  4. Replies: 2
    Last Post: 01-13-2013, 06:50 AM
  5. [SOLVED] for each sheet with first 3 char matching variable, copy column C to Target sheet unless..
    By Spyderz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2012, 08:17 AM
  6. Replies: 3
    Last Post: 02-16-2011, 08:22 PM
  7. Filter, copy specific columns, and paste to another sheet.
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-29-2009, 06:33 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