+ Reply to Thread
Results 1 to 6 of 6

Badge Inventory Report

  1. #1
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Badge Inventory Report

    Hi
    I need some help on the VBA of this report. In the "scan here" tab. I will scan in the badge number in cell "A2". The date will automatically be timestamped into the "June 17" tab of the date which I have indicated in cell "B2" of the Scan Here Tab. (I have originally input a "Today" function in cell B2 but have removed it for trial purpose here).
    I just need a small help on the VBA whereby for example if I change badge 1 to "assigned" status on the date of 2 jun 17, the time stamp is not showing on cell J113. It is showing up on cell J3. Any assistance will be greatly appreciated.

    The VBA code is as follows

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Shamz41; 06-22-2017 at 11:55 PM. Reason: Tag code

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Badge Inventory Report

    Hi shamz41

    Just check if this is what you require, then will convert to Event Macro
    Please Login or Register  to view this content.

    Edited:
    Please Login or Register  to view this content.
    Last edited by sintek; 06-23-2017 at 08:24 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Badge Inventory Report

    Hi
    The VBA worked but I when I changed the dates in row 2 to July the code didn't work. I have the below formula in cell J2 onwards to auto input the date.

    I also realised the time stamp input showed the date correctly but the time was set at 12:00 AM. I need the date and time to be the current date and time stamped when I scan in the badges.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Badge Inventory Report

    Hi Shamz41

    I don't get it....Help me understand so that i can assist.
    You type in A Badge no in A2 and a date in B2......This code automatically goes and finds the date you typed in and the badge no and enters the date and time stamp in the corresponding cell..... Corrected the code to stamp correct time...see red portion of code....IF you go and change G2 to 01/07/2017 which then lets your formula convert all to Jul.....The code still works...See sample upload with results.
    Put the code in Sheets("Scan Here") Module
    Am i missing something?
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 06-24-2017 at 02:47 AM.

  5. #5
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: Badge Inventory Report

    Hi Sintek
    It worked perfectly. Thanks man.

    Can I check with you I have this formula from rows 599:603 to count the total. In cell G600, I need the formula to count any text that is not the word "Loan", "Damaged" and date input from the timestamp.

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

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Badge Inventory Report

    The date count is a bit tricky....because dates in excel are simply formatted numbers....The cell contains date and time....Not to sure hey. perhaps someone else can assist with this part...The below formula will count all occurences except the damaged and loan...
    Formula: copy to clipboard
    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. Badge Inventory look up
    By Shamz41 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2017, 07:58 AM
  2. Inventory Summery Report help.
    By bone7890 in forum Excel General
    Replies: 2
    Last Post: 01-13-2016, 05:28 AM
  3. Badge Inventory Scanning
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2015, 10:59 PM
  4. Agieng inventory report
    By azhar786 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2014, 08:35 AM
  5. Inventory Ageing Report
    By Josher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-15-2013, 09:43 AM
  6. Inventory Report
    By pakhare.kiran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2013, 07:30 AM
  7. inventory report
    By gnettenstrom in forum Excel General
    Replies: 3
    Last Post: 04-03-2011, 12:45 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