+ Reply to Thread
Results 1 to 6 of 6

Auto delete rows based on scan

  1. #1
    Registered User
    Join Date
    11-02-2018
    Location
    Coventry
    MS-Off Ver
    2016
    Posts
    3

    Auto delete rows based on scan

    Hi,

    I’m trying to create a spreadsheet for the following: at start of day colleagues are given 2 pieces of kit which are scanned onto sheet 1 together with their name. End of day the kit is scanned back in and I need for the spreadsheet to delete any rows that are scanned. However I also need sheet 2 to contain all that information permanently.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto delete rows based on scan

    .
    Define "scanned" ... how is the data entered into the sheet ?

    Providing a copy of your workbook would be preferred for a better understanding of your layout / logic.

  3. #3
    Registered User
    Join Date
    11-02-2018
    Location
    Coventry
    MS-Off Ver
    2016
    Posts
    3

    Re: Auto delete rows based on scan

    I've attached the spreadsheet. At the end of the day the first sheet should be completely empty as the kit is returned and the data should now lie on second sheet. The Kit is barcoded so serial number are scanned to the spreadsheet
    Attached Files Attached Files

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto delete rows based on scan

    .
    Here is a small project that is almost identical to yours, except new data is entered by keyboard. I'm not
    familiar with the use of a scanner ... but I surmise you have a macro that transferred the data to the sheet ?

    You can place a version of this macro at the beginning of your scan macro so it transfers the data to sheet 2 prior to entering
    the new data. Let me know if you have issues with this code (you'll need to edit the ranges / sheet names ) :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-02-2018
    Location
    Coventry
    MS-Off Ver
    2016
    Posts
    3

    Re: Auto delete rows based on scan

    Hi Logit
    I've managed to get a VBA that hides a row of my choosing based on changing data in a column, in this case column D. Once I change the data in the cell it hides that entire row. The problem I now have is I want to change the data in D based on the data in B1 so I have put a formula to that effect. Unfortunately my VBA still sees this as unchanged data, please help
    Attached Files Attached Files

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto delete rows based on scan

    .
    Take a different approach for a solution. You state you want to locate the data and change it to something else.

    Paste this macro into a module - paste a Command Button on the sheet. The macro will ask for two terms ... First, what term to search for (the number you are seeking) then
    what should that number be changed to.

    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. [SOLVED] Auto delete rows, based on cell
    By charlesgy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-08-2017, 02:05 AM
  2. Auto delete rows, based on cell
    By charlesgy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2017, 03:32 AM
  3. [SOLVED] Auto Fill Row based on value and auto delete shift cell up based on value too
    By morr1 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-14-2017, 07:12 PM
  4. [SOLVED] Extracting from table based on criteria and auto delete rows after 4 days from database
    By ACALEX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2014, 10:33 AM
  5. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  6. Auto Virus Scan
    By chesjak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2006, 03:25 AM
  7. Scan and delete
    By Hutch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2005, 03:06 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