+ Reply to Thread
Results 1 to 8 of 8

Clock In/ Clock out macro

  1. #1
    Registered User
    Join Date
    07-20-2013
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2007
    Posts
    1

    Clock In/ Clock out macro

    Hello,
    I have been using excel for various things and am well versed in formulas. However, I am fairly new to macros/VBA and need some help. I have watched numerous tutorial videos and have read up on the basics but I cant seem to figure this out.

    I am trying to create a Spreadsheet to enter and keep track of employee hours. My idea is, in sheet1, I would like to have a clickable list of employees. I would also like to have two buttons, one for clock in, and one for clock out. The employee would click on their name then click on the corresponding button (depending on if they are clocking in or out). On sheet2, it will have a list of employees and their times. So lets say the employee clicks "clock in", i would like it to insert their name and a current date and time stamp in sheet2, columns A+B, row 1. The next employee would get entered into row 2, and so on and so forth. Then when they clock out, it would recognize the name and insert the stamp in the corresponding row but in the column one to the right of their first stamp. The next day, it will make a whole new entry for the employee in the next available row down. I do not know how to work the code for the buttons, or how to do the clickable list of employees. Any help would be much appreciated. Thank you.

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Clock In/ Clock out macro

    I think this is what you are looking for
    Attached Files Attached Files
    Please consider adding a * if I helped

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 365
    Posts
    29

    Re: Clock In/ Clock out macro

    Something along these lines?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-22-2014
    Location
    Charleston, SC
    MS-Off Ver
    Office Pro Plus 2010
    Posts
    1

    Re: Clock In/ Clock out macro

    whtwzzrd88,

    Be interested in making me a vb/macro based on this exact button click idea? except i need it to be on the same page C2 "Time Begin" and D2 "Time Stop" , and if you have the knowledge to factor in an E2 that will show the accumulated time between start and stop.

    I'd greatly appreciate this, VB is killing me

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 365
    Posts
    29

    Re: Clock In/ Clock out macro

    EmployeeLogUpdate.xlsmSorry it took so long, hope this is what you needed.

  6. #6
    Registered User
    Join Date
    04-06-2016
    Location
    uk
    MS-Off Ver
    2016
    Posts
    2

    Re: Clock In/ Clock out macro

    hi , how comes i am unable to download the sample file?

  7. #7
    Registered User
    Join Date
    04-06-2016
    Location
    uk
    MS-Off Ver
    2016
    Posts
    2

    Re: Clock In/ Clock out macro

    please help, why cant i download the sample file?

  8. #8
    Registered User
    Join Date
    04-09-2013
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 365
    Posts
    29

    Re: Clock In/ Clock out macro

    It's been 5 years so the website probably doesn't keep files that long... I can upload again but i haven't touched it since
    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. Clock In/Out - Macro to Log Time by a Switch on multiple columns (multiple rows)
    By jasw529 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2013, 06:45 AM
  2. Default time from 12 hour clock to 24 hour clock
    By MR-77 in forum Excel General
    Replies: 3
    Last Post: 03-31-2011, 04:15 PM
  3. Macro Time Clock
    By natepen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2007, 09:25 PM
  4. Clock in/Clock out calculation
    By phatpandas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2007, 03:23 PM
  5. [SOLVED] Start Clock/Stop Clock
    By abfabrob in forum Excel General
    Replies: 9
    Last Post: 06-28-2005, 12:05 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