+ Reply to Thread
Results 1 to 2 of 2

Deleting a row when a value match is found in another worksheet

  1. #1
    Registered User
    Join Date
    05-15-2019
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    9

    Deleting a row when a value match is found in another worksheet

    Hi,

    I'm blanking on this and it feels so simple I should know. I'm working on a reporting tool for an asset log that creates upload files, one for deploying assets and one for returning assets. This part of the tool tells us if the person we are deploying an asset to also has additional assets to them. In my macro I've used the following code to populate tab "Multiple Devices" with records from another workbook which works fine.
    Please Login or Register  to view this content.
    Now the next step is to check the results in the Multiple Devices worksheet against the assets in the return list (same workbook, worksheet is called In Inventory) and if a match is found delete the entire row in the Multiple Devices worksheet. I know I can use a reverse loop with a boolean condition for deleting the entire row but I cannot remember how to generate that boolean answer;
    Please Login or Register  to view this content.
    For purposes of this code I am using a unique asset tag to match the records. On the Multiple Devices worksheet that's in column B, in the In Inventory worksheet that's column E


    Sorry I can't post an example of the spreadsheets as they contain sensitive information. The full code for thsi workbook is;
    Please Login or Register  to view this content.
    Last edited by MattEvansC3; 07-13-2020 at 10:41 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    05-15-2019
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    9

    Re: Deleting a row when a value match is found in another worksheet

    I figured it out
    Please Login or Register  to view this content.

+ 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] INDEX/MATCH generates incorrect result by referencng nearest cell if match not found
    By aglawrence in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2017, 08:59 AM
  2. [SOLVED] Deleting Rows where multiple words are found
    By ScottyZ92 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2015, 01:21 PM
  3. Deleting duplicate numbers if found in an array
    By MildewMan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2015, 02:20 PM
  4. Show worksheet name on match found
    By veloci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 08:21 PM
  5. Having an issue deleting rows based on certain text found in them...
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-04-2014, 05:07 AM
  6. Macro - deleting rows if no image found on server
    By DeanR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2013, 11:02 AM
  7. Copy data from worksheet 2 to worksheet 1 if match found
    By TSSRob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2011, 07:54 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