+ Reply to Thread
Results 1 to 2 of 2

vba to filter only from the provided list

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    vba to filter only from the provided list

    Hi all,

    help to achieve the below,

    I have Emp name Sack, mussori, cheek , tracy etc., in first sheet.

    what i want is in sheet2, i have given the list of name
    Tracy & cheek.

    so i want code to filter Tracy and copy row to sheet3.
    and again filter cheek and copy row to sheet3 below the tracy data.

    I dont want to copy tracy and cheek data rows together.
    i want to do it one by one.

    And list of name which i will give in sheet2 ...may be any number of rows....
    may be 60 or 70 names.

    i want a code to apply filter and pick first name of sheet 2 and copy that data to sheet3
    and to go on untill all the names listed in sheet2 is picked and data in sheet1 is copied and pasted in sheet3.

    expecting some help on this......

    attached example file
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,912

    Re: vba to filter only from the provided list

    Try this:

    Please Login or Register  to view this content.
    Note: In your sample file Creek is spelled two different ways. One is capitalized and the other is all lower case. I put the Option Compare Text into the code to assure that these would be treated as equal. If that is not what you wanted, then you should remove the Option Compare Text. In this situation, you would not copy over the values for Creek as you have specified creek as the criteria. VBA is very particular about this.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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: 2
    Last Post: 09-04-2014, 02:50 PM
  2. [SOLVED] Split the data to new files based on the date and name it from the list provided
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2014, 04:26 AM
  3. Search from provided data list and return all instances of given criteria
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2012, 07:01 AM
  4. [SOLVED] Extracting desired data from a list when the Unwanted list is provided
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-11-2008, 10:33 AM
  5. [SOLVED] Convert CSV from clipboard into a transposed list (part solution provided)
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 02:55 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