+ Reply to Thread
Results 1 to 11 of 11

Remove Rows With Specific Phrase Using Another Worksheet

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Thumbs up Remove Rows With Specific Phrase Using Another Worksheet

    So I needed a Macro that would remove any row with a phrase or word detected. This is what I have and it works perfectly:

    Please Login or Register  to view this content.
    The problem is that I have over 1,000 entries that I need to put into the array for removal.

    Arrays, Dictionary, Etc all have limits and there are only so many line continuations allowed in the viewer.
    I was looking to just call from column 1 of sheet2 to get my list, but am having problems with the code:

    Please Login or Register  to view this content.
    Can someone please help fix this code and help me understand why this is so difficult?
    Last edited by AccountNameHere; 08-08-2013 at 07:00 PM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    maybe so
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    IT WORKS PERFECT... BUT

    For some reason it is giving an error when parsing too much data? Please take a look.
    Last edited by AccountNameHere; 08-08-2013 at 01:23 AM.

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    The easiest way is to attach the excel file so you can see the macro and sheet I have.
    It might not be your code, but perhaps the data in Sheet2.

    The only problem is that the entries need to stay exactly the same.
    Case, Punctuation, Spacing, Spelling.


    Here is my file

    SC FILTER.xlsm

    http://www38.zippyshare.com/v/74954447/file.html
    Last edited by AccountNameHere; 08-08-2013 at 01:22 AM.

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

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    Try this
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 08-08-2013 at 02:05 AM. Reason: File attached

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    or so
    Please Login or Register  to view this content.
    Jubilee 1500 posts
    Last edited by nilem; 08-08-2013 at 02:06 AM.

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    Both of those codes work, but when I add more, I still get errors. Would it be because of the punctuation and special characters that causes the problems? There are some entries that have CAFÉ
    Last edited by AccountNameHere; 08-08-2013 at 11:24 AM.

  8. #8
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    I am not an expert, and it is very hard to read the code you guys write because it is so far out of my league that Its like trying to figure out The Beale Ciphers. Why isn't this working?

    Please Login or Register  to view this content.

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    This code works for me
    is there an Option Compare Text statement in your module?

  10. #10
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    Yes, But I still get a Debug Error when it runs too many. If I only have like 50 in sheet 2, all code examples work. Maybe it has to do with the difference in number of entries in sheet1 and sheet2.

  11. #11
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Remove Rows With Specific Phrase Using Another Worksheet

    Thank you! I combined code and got it to work! Reputation for all!!

+ 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. Mass Delete Rows with specific phrase
    By washburn321 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2014, 10:50 AM
  2. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  3. Hiding Rows With A Cell Containing Specific Phrase
    By carrleaston in forum Excel General
    Replies: 1
    Last Post: 10-31-2011, 07:24 PM
  4. Excel 2007 : Formula for specific phrase
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 07-22-2009, 04:41 PM
  5. [SOLVED] How to highlight a row containing specific phrase?
    By Josef Vosyka in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2005, 02:10 PM

Tags for this Thread

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