+ Reply to Thread
Results 1 to 6 of 6

Find and Select Text and Delete partial row

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Find and Select Text and Delete partial row

    Hi guys,

    I have a table that looks like this:

    J5 Delete 52
    G6 Hera 15
    B4 Afrodite 42
    M4 Delete 41
    W1 Apolo 33

    I want to delete the row and move up (from colum A to C) where there is "Delete" on column B.
    I can't delete the entire row because I have other data on the side of it.
    Last edited by heuder; 10-21-2015 at 09:38 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find and Select Text and Delete partial row

    Try:
    Please Login or Register  to view this content.
    The macro assumes your data is in columns A, B and C and that it starts in row 2.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Find and Select Text and Delete partial row

    Thank you for your help Mumps1,

    But is not working, it does nothing.

    Maybe I'm doing something wrong? =(

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find and Select Text and Delete partial row

    When I tested the code on the data you posted, it worked correctly. Perhaps your data is organized differently. Can you post a copy of your file?

  5. #5
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Find and Select Text and Delete partial row

    It's working, sorry.

    Apparently, I think the problem was with Uppercase on the code.

    On my cells I have "delete" and on the code was "Delete", does that make sense?

    Well, it's working know, thank you.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find and Select Text and Delete partial row

    That certainly makes sense. Glad to 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. Find partial text in a range o cells
    By bbb13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2015, 02:20 PM
  2. [SOLVED] Delete row based on criteria partial text
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-07-2013, 04:36 AM
  3. [SOLVED] To find partial text
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-06-2013, 10:44 AM
  4. Macro that can delete partial text from a range of cells
    By barkerw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2011, 12:19 PM
  5. Macro to delete rows based on partial text
    By rossi_69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2009, 06:25 PM
  6. Delete partial text
    By bnl552 in forum Excel General
    Replies: 2
    Last Post: 09-02-2008, 08:20 PM
  7. Delete partial text
    By bnl552 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2008, 03:45 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