+ Reply to Thread
Results 1 to 8 of 8

Time Out and Time in

  1. #1
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Time Out and Time in

    Hi Experts,

    Can someone help me write a code for my file. I'm trying to monitor the people who goes out by noting the time they go out, and the time they get back in. I have a file that has a userform where if they put the Emp Code, the Emp Name should show. I either select "In" or "Out" button and transfer the data to the "InOut" sheet. Please see the file attached and the userform in it. Many Thanks!
    Attached Files Attached Files

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

    Re: Time Out and Time in

    Hi markusvirus

    This code to be placed within the [IN] button
    Please Login or Register  to view this content.
    This code for [OPEN FORM]
    Please Login or Register  to view this content.
    This code for ComboBox1...PS I changed your combobox2 to a textbox as the choice of empl no automatically inserts the name into Textbox
    Please Login or Register  to view this content.
    This code goes into [OUT] button
    Please Login or Register  to view this content.
    Last edited by sintek; 03-30-2017 at 03:01 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
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Time Out and Time in

    hi sintek, thank you so much. I just can't see the attachment

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

    Re: Time Out and Time in

    Here's an example workbook with the inner workings
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Time Out and Time in

    Hi Sintek,

    The form looks great! It's just that what I intend to get is in reverse. The employee would go out first, and when they get back, the duration that they were out will be computed. and I was also wondering why there are 2 clock outs? Thank you so much for helping me out.

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

    Re: Time Out and Time in

    Oops the last [Clock Out] button must be renamed [Exit]...This closes or hides the userform.
    have a look now and see if it is right..
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Time Out and Time in

    Hi sintek,

    This worked perfectly. Thank you!!

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

    Re: Time Out and Time in

    Glad to have helped. Thanks for rep points. Please mark thread as solved.

+ 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] time sheet help, format TIME and formula based on the actual time entered.
    By bh mng in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-06-2016, 01:10 PM
  2. Replies: 0
    Last Post: 03-04-2016, 06:38 PM
  3. [SOLVED] EPOCH Time Conversion to local time and daylight savings time (DST)
    By cwwazy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2015, 02:14 PM
  4. Replies: 10
    Last Post: 11-08-2014, 04:51 PM
  5. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  6. Replies: 3
    Last Post: 11-06-2012, 01:37 AM
  7. Replies: 0
    Last Post: 08-23-2005, 12:22 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