+ Reply to Thread
Results 1 to 3 of 3

Find and Delete rows based on cell value VBA, using a list as search criteria

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2015 for Mac
    Posts
    1

    Question Find and Delete rows based on cell value VBA, using a list as search criteria

    Hi, I'm fairly new to VBA and have mostly done recorded macros then edited from there. What I want out of my Macro is to have on one sheet (outgoing) a list of numbers in column A. In another sheet (mastersheet) another list of numbers also in column A. I want to delete from the list in the mastersheet any values that are in the list on the outgoing page. If possible I would then like the values on the outgoing page to then be deleted upon completion of the macro.

    I have tried with no success a couple of different codes, all copied and altered from forums, but none seem to work.

    Thanks, Angela

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Find and Delete rows based on cell value VBA, using a list as search criteria

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    To add a file to a new post

    To add a file to an existing post.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Find and Delete rows based on cell value VBA, using a list as search criteria

    It sounds like you want to delete the numbers that the same in both sheets in column A. Is this correct? Also, do you simply want to clear the cells in which these numbers are found or do you want to delete the entire row in which the numbers are found?
    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.

+ 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 rows based on cell criteria
    By bmouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 10:08 AM
  2. [SOLVED] find (criteria from list) delete rows below in another worksheet
    By ufopilot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2014, 05:38 AM
  3. vba help to find cell based and delete rows
    By mike760534211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2014, 09:47 AM
  4. [SOLVED] delete rows based on search criteria
    By Rem0ram in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-31-2014, 10:07 AM
  5. [SOLVED] How to find and delete rows based on criteria within a given column
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 02:35 PM
  6. Find and Delete rows based on criteria in multiple columns
    By Doctor_H in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2013, 08:03 PM
  7. Find rows and delete them based on multiple criteria
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-31-2012, 11:59 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