+ Reply to Thread
Results 1 to 5 of 5

Need to find macro which can find the specific text use multpile criteria to delete rows

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to find macro which can find the specific text use multpile criteria to delete rows

    Hi to all the experts,

    I am facing stuck up problem. I am facing thousands records to edit. I think of using vba code to ease burden for data entry. I wonder if the vba code can allow me to find the specific keyword inside the job title. For example, I want to find multiple criteria for text like Talent or Staffing in column c, then hide their row or delete their rows.

    hoping to learn alot of great stuffs here.

    Cheers
    Brad

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need to find macro which can find the specific text use multpile criteria to delete ro

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by patel45; 09-17-2012 at 08:49 AM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to find macro which can find the specific text use multpile criteria to delete ro

    Hi Patel,

    Thank you for replying to my complicated question. IT is very helpful.

    I am first timer here. Shall I copy all the 3 codes sets into my vba macro? It help me to delete for all the rows with my selected cell value - only 1 value - Talent. If i want to find both of Staffing & Talent or even more than 3 values (Staffing, Talent & Resourcing) to delete for their rows, is it possible how to do loop to find multiple value in column C to delete?

    Many thanks!

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need to find macro which can find the specific text use multpile criteria to delete ro

    Your request was vague, I attached some examples, there are many ways to achieve the same result

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Need to find macro which can find the specific text use multpile criteria to delete ro

    Hi, diaslag05,

    you could use the Autofilter without any macros as well as to run through the list. Limitation to this is that itīs a continuous area of data.

    And yes, you can have a list of items on a different sheet and work that from first item to last to find what you have searched for.

    But after all it may also be a good idea to check out the Advanced filter where the headers for the data is copied twice as criteria range and as output. Each row will be an item to search for (no limitation like in standard Autofilter to only 2), and you could apply special needs like areas of postal codes to the criteria as well. The Advanced Filter needs to be started on the sheet where the criteria range and the destination is to be found.

    Why do you want to delete the rows? I will usually make a smaller part of that list as I will work on it but keep the original in the same workbook.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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