+ Reply to Thread
Results 1 to 20 of 20

Simple Time sheet, log start date time and end time

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Simple Time sheet, log start date time and end time

    I am struggling with a very simple code I just want a simple time sheet that tracks time on different projects.

    1. I want to enter a start day and Time (Start)
    2. When click stop it records end time, duration and new start time on next row.

    Thanks for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Simple Time sheet, log start date time and end time

    Try, Cell(Row,Column)

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Hi Vicarious

    I see you have not made provision for Employee Name. have a look at attached and play around with it. Names are stored in sheet2
    Attached Files Attached Files
    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 [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Add this line of code
    Please Login or Register  to view this content.
    below
    Please Login or Register  to view this content.
    in clock out code to work out duration

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Simple Time sheet, log start date time and end time

    How would you know if someone else does not Clock in and Out for another person?
    Also, If a person has already Clocked in, he/she should not be able do so again before having Clocked out from the last Clock in.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    @ Winon

    My sample attached was just a start for OP...I can give him my POS clock in system which allows for personalized passwords and pop up messages that do not allow for clock in's again etc etc

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Simple Time sheet, log start date time and end time

    Hi sintek,

    Ek sou graag wou sien dat jy dit doen vir groter aansien!

    It is exactly what I was hinting at, sintek. You could tone it down a bit just so it cover those basics!

    I recall you working on it a while ago.

    Go for it!

  8. #8
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Simple Time sheet, log start date time and end time

    OMG, it's been a long week, I have struggled with that part for an hour and couldn't get it. Thanks!

  9. #9
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Simple Time sheet, log start date time and end time

    Quote Originally Posted by mike7952 View Post
    Try, Cell(Row,Column)

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

    mike7952- OMG, it's been a long week, I have struggled with that part for an hour and couldn't get it. Thanks!

  10. #10
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Quote Originally Posted by Winon View Post
    Hi sintek,

    Ek sou graag wou sien dat jy dit doen vir groter aansien!

    It is exactly what I was hinting at, sintek. You could tone it down a bit just so it cover those basics!

    I recall you working on it a while ago.

    Go for it!
    Let's see what Vicarious has to say. He seems happy with the solution from mike7952.

  11. #11
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Simple Time sheet, log start date time and end time

    Quote Originally Posted by sintek View Post
    Hi Vicarious

    I see you have not made provision for Employee Name. have a look at attached and play around with it. Names are stored in sheet2
    This is awesome! I don't need the employee name, each person will track their own time. But that might be nice to change to the different projects each one is working on. Very easy to pick from them then.
    Thanks for the help I can get this to work! I hope...

  12. #12
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    K, Good luck. Let me know if you require a complex Clock in system. I designed one for my Restaurant POS System some time ago.

  13. #13
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Simple Time sheet, log start date time and end time

    sinek,

    A couple things I would like to change
    1. How do I get the combobox1 to select more than 4 names?
    2. When clocking out can we clear the combobox1?
    3. The duration doesn't appear to be working.
    With these minor changes it will be better than I thought it would be.
    Thanks

  14. #14
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Hi Vicarious

    I have attached a sample of a basic time sheet that will fulfill your requirements. In Sheet2 Column A you can add as many names as you like.The combobox will be populated with all names. Give it a try and let me know if it is suitable.
    Attached Files Attached Files

  15. #15
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    @ winon

    R you spying on me lol

  16. #16
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Quote Originally Posted by sintek View Post
    Hi Vicarious

    I have attached a sample of a basic time sheet that will fulfill your requirements. In Sheet2 Column A you can add as many names as you like.The combobox will be populated with all names. Give it a try and let me know if it is suitable.
    Oops, just realized that I did not insert a check for if Combobox = "" prior to clock in or clock out

  17. #17
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    Put this line of code
    Please Login or Register  to view this content.
    in the command buttons for both IN & OUT just before line of code
    Please Login or Register  to view this content.

  18. #18
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Simple Time sheet, log start date time and end time

    @ sintek,

    Yep! With the Userform "Exit" Button, rather use Unload Me instead of App. Quit.

    With the Sheet Clear Button, I believe only an appointed authorized user should be able to do that:

    Please Login or Register  to view this content.
    If you need help with this, I shall gladly help!

  19. #19
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Simple Time sheet, log start date time and end time

    @ Winon

    Thanks for feedback sweetie. Means alot. I was using Application.Quit to end the program after save.
    Great idea for Selection clear password. Can amend if OP requires. Was not sure how he was going to implement.

  20. #20
    Registered User
    Join Date
    03-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Simple Time sheet, log start date time and end time

    Quote Originally Posted by sintek View Post
    Hi Vicarious

    I have attached a sample of a basic time sheet that will fulfill your requirements. In Sheet2 Column A you can add as many names as you like.The combobox will be populated with all names. Give it a try and let me know if it is suitable.
    This is awesome! Thank you so much!

+ 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. Start time and End time Calculation sheet and uneditable of Time
    By tgray007 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-17-2017, 10:02 AM
  2. Replies: 9
    Last Post: 02-15-2015, 07:32 PM
  3. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  4. Calculation of time difference between the Start date & time & End Date & time
    By Harry Jones in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-17-2012, 03:54 PM
  5. Replies: 3
    Last Post: 03-27-2012, 01:07 PM
  6. Replies: 5
    Last Post: 03-21-2012, 08:07 AM
  7. Calculating days & time left from start date/time to end date/time
    By marie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2005, 10:40 AM

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