+ Reply to Thread
Results 1 to 3 of 3

Macros that can clear old data reference number data and pull the new reference up

  1. #1
    Registered User
    Join Date
    12-05-2023
    Location
    Kuwait
    MS-Off Ver
    2019
    Posts
    1

    Question Macros that can clear old data reference number data and pull the new reference up

    Hello All , I have taken interest in excel VBA recently and am trying to learn and apply some optimizations to my daily excel workflow sheets.

    I have an excel sheet where there are unique references for each transaction i record. I record all the transactions for the day then the next day i clear those transactions and pull up the new unused unique references to start my day.

    I feel there is a macros where to automate this mundane task.

    Appreciate the support and thank you.

    Example Below
    Excelforum example.png

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Macros that can clear old data reference number data and pull the new reference up

    Hi there,

    Try the code below (update sheet name, table name and column header to your actual data/file;

    Please Login or Register  to view this content.
    Last edited by ORoos; 12-05-2023 at 09:38 PM. Reason: Updated code
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

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

    Re: Macros that can clear old data reference number data and pull the new reference up

    Simply use autofilter to hide the processed entries. All you need to do is to assign a name to your table, for example Table1, and automatically run this tiny routine once a cell in the second column is filled:

    Please Login or Register  to view this content.
    Sample file here: Book1.xlsm. You can observe the code by right clicking on the tab and select View Code.
    Compared with the solution in the previous post, I think this one is better if you want to review the processed entries.

    Cheers
    Last edited by kaasplankje; 12-06-2023 at 06:52 PM.

+ 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] IF Statement to match reference on separate worksheet and pull data through
    By Funkymonkey0073 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 08:15 AM
  2. [SOLVED] CountifS for Column Reference, Row Reference and Data Validation Reference
    By pavanbhoyar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2018, 02:37 AM
  3. How to Reference/Pull data to Overview Tab
    By cartica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2015, 02:11 PM
  4. Replies: 2
    Last Post: 06-03-2013, 06:16 PM
  5. I'm lazy. There has to be a faster way to pull data & cross reference a worksheet, right?
    By colleendeborah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 07:52 PM
  6. Replies: 6
    Last Post: 03-17-2009, 05:39 AM
  7. how do the macros get data from te reference tables?
    By Kitchen Tune Up - Mario in forum Excel General
    Replies: 3
    Last Post: 01-19-2006, 08:15 PM

Tags for this Thread

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