+ Reply to Thread
Results 1 to 11 of 11

VBA Needed - Delete record based on Text (with Wildcard)

  1. #1
    Registered User
    Join Date
    08-02-2022
    Location
    Montclair, NJ
    MS-Off Ver
    MS 365
    Posts
    32

    VBA Needed - Delete record based on Text (with Wildcard)

    Hello,

    I'm looking for VBA that would get rid of all records that contain the Text "Matthew"

    Here is the Before....
    Before.png

    Here is the Ideal After....
    After.png


    Thank you!
    Robert
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    435

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Poor Matthew. What has he done to you?

    Try this:

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Greetings to all. Here I show a way without iterations:

    Please Login or Register  to view this content.
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  5. #5
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Quote Originally Posted by kaasplankje View Post
    Poor Matthew. What has he done to you?
    Jajaja

  6. #6
    Registered User
    Join Date
    08-02-2022
    Location
    Montclair, NJ
    MS-Off Ver
    MS 365
    Posts
    32

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Hey, I can't get this to work.
    Should there be something next to the "Next"?
    Last edited by rmathisen; 11-30-2022 at 02:15 PM.

  7. #7
    Registered User
    Join Date
    08-02-2022
    Location
    Montclair, NJ
    MS-Off Ver
    MS 365
    Posts
    32

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Hey, I can't get this to work.
    Should there be something next to the "Next"?


    Quote Originally Posted by kaasplankje View Post
    Poor Matthew. What has he done to you?

    Try this:

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: VBA Needed - Delete record based on Text (with Wildcard)


    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    435

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Matthew needs to head over to HR.

  10. #10
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Quote Originally Posted by rmathisen View Post
    Hey, I can't get this to work.
    Should there be something next to the "Next"?
    Make sure you are on the right sheet and note that the entry is case sensitive.

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

    Re: VBA Needed - Delete record based on Text (with Wildcard)

    Simply AutoFiter,
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. How to delete record based on date?
    By VAer in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2020, 05:02 AM
  2. VBA help needed to delete ListBox selected record from table
    By krjoshi in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2016, 04:14 PM
  3. VBA code needed to copy rows based on mulitple wildcard criteria
    By derryt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2014, 08:56 AM
  4. [SOLVED] VBA needed to find and replace text using a wildcard
    By jgupte in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-30-2012, 08:10 PM
  5. Delete Row based on record found in cell
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 09:04 AM
  6. [SOLVED] Delete record(s) in other cells based on value of one cell.
    By MPope in forum Excel General
    Replies: 1
    Last Post: 10-12-2005, 02:05 PM
  7. [SOLVED] delete record based on a value
    By Anauna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2005, 04:05 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