+ Reply to Thread
Results 1 to 5 of 5

search and delete multiple item separated by a comma

  1. #1
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    search and delete multiple item separated by a comma

    HI

    I have this code below

    Please Login or Register  to view this content.

    I would like to add to this code

    I would like in the second input box that you should be able To put in multiple items separated by a comma, and it should perform this macro if it finds any of theses values

    THANKS

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: search and delete multiple item separated by a comma

    Why not use Autofilter with multiple criteria to filter and delete rows. (much faster then searching row by row).
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    Re: search and delete multiple item separated by a comma

    i would like to use the same code just add the ability to input multiple options in a user box (separated by a comma) i don't want to go with any filter method

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: search and delete multiple item separated by a comma

    Add one more loop like
    Please Login or Register  to view this content.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: search and delete multiple item separated by a comma

    Add Screenupdating so you don't see rows scrolling.
    Please Login or Register  to view this content.

+ 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: 16
    Last Post: 02-21-2017, 02:10 AM
  2. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  3. Search for comma-separated list of items
    By BBerndsen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2013, 11:16 AM
  4. [SOLVED] VBA- Selecting multiple items separated by comma
    By jewellove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2013, 01:46 AM
  5. Replies: 10
    Last Post: 02-05-2012, 12:56 AM
  6. Transpose multiple comma separated values
    By SRd240sx in forum Excel General
    Replies: 2
    Last Post: 12-07-2009, 09:36 PM
  7. Replies: 2
    Last Post: 02-15-2005, 07:12 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