+ Reply to Thread
Results 1 to 4 of 4

Found?, then delete entire rows. Not found end sub

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    New York
    MS-Off Ver
    2305 - Enterprise 365
    Posts
    147

    Found?, then delete entire rows. Not found end sub

    Hello All,
    Would someone be able to create a macro that can find all instances of a particular text (in this case "Kings and Queens") and then delete entire rows once found? In the one workbook, rows 39 and 85 should be deleted. However, the same macro should end if the text is not found. I have attached two workbooks, each showing the two different scenarios (i.e. found or not found). The macro should NOT scan both workbooks at once. One macro should work on each workbook separately. The macro should scan cells C1:C300 for the text.

    If you have any questions, please do not hesitate to contact me.

    Thanking you all in advance,

    Andrewstupendo
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Found?, then delete entire rows. Not found end sub

    How about
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-20-2015
    Location
    New York
    MS-Off Ver
    2305 - Enterprise 365
    Posts
    147

    Re: Found?, then delete entire rows. Not found end sub

    Thank you so much for your help, Fluff13. It works perfectly!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Found?, then delete entire rows. Not found end sub

    Glad to help & thanks for the feedback

+ 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. [SOLVED] delete entire row when value is found
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2015, 03:06 AM
  2. [SOLVED] delete entire row when value is found
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2015, 06:47 PM
  3. [SOLVED] Delete Entire Row if Blank is Found in Column
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-17-2014, 11:28 PM
  4. delete the entire row if duplicate found in column
    By gujugolf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 04:07 PM
  5. [SOLVED] Macro To Delete Entire Row If Dublicate Is Found
    By SilverFox in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2012, 06:07 AM
  6. delete entire row if 'value' found anywhere in column - most efficient way?
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-25-2012, 08:21 AM
  7. Replies: 6
    Last Post: 05-24-2012, 09:14 AM

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