+ Reply to Thread
Results 1 to 5 of 5

Timeclock project... going badly

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    2

    Timeclock project... going badly

    I am trying to create an Excel spreadsheet that I can use as a time clock for my employees. Currently they just put their times in manually, and there really is no way for me to verify if they are being truthful or not.

    I am trying to make a spreadsheet that will only have 4 columns (Date, Time In, Time Out, and Total). I would like for the employee to just be able to click on a certain cell (clock-in or clock-out), and have the spreadsheet fill out the appropriate space with the current time.

    So here is my problem. I am trying to use the following function =HOUR(NOW())& ":" &MINUTE(NOW()) within the 'button' cell, and have the receiving cell equal it. But it seems that whenever I call the 'NOW()' function, all of my cells that are referencing it update, and I am not sure how to make only that one cell update.

    Does anyone have any ideas?

    Thank you for all of your help
    Jay

  2. #2
    Registered User
    Join Date
    07-16-2007
    Posts
    43
    I'd suggest using a macro that is activated when you click a button. Assign the cell value as "Time" inside the macro, it will show up as hard data in the sheet, as opposed to a formula. Therefore, it would never update.

    The problem is determining what cell to put the information in. Buttons are independent of cells, and I can't imagine a spreadsheet with two buttons on each row would work too well. I can picture a "Clock-in" button and a "Clock-out" one, but you'd have to add a bit of code to the event to make it insert the time in the appropriate row.

    You'll also want to consider protecting the workbook and locking the cells so that employees cannot overwrite the time given by the system. Be aware that the time is taken from your windows clock (at least I think it is), so if the employee changes the clock, your application will be fooled. You can unprotect at the beginning of your macro and re-protect at the end of it.

    Are you comfortable with VBA? I can post some code if you'd like, but I'm not exactly the most efficient programmer out there.

    Brigitte
    Last edited by Brigitte_P; 08-09-2007 at 02:21 PM.

  3. #3
    Registered User
    Join Date
    08-09-2007
    Posts
    2
    No, unfortunately I am only comfortable with C++. VBA is new to me. I can kind of read it and see where it is going, and somewhat manipulate it (from what I know about C++), but it is hit or miss for me. I would still welcome any code, or ideas that you have though. Anything to get me started.


    Thank you for your help
    Jay

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Jay

    See if the attached file gives you any ideas. The sheet is protected, but there isn't any password, so you may want to expand that at least.

    Select a date (you can prefill for your situation), then press the relevant button. If you aren't on a date, you are asked to select one. If the number has previously been completed, then it won't allow you to re-enter.


    rylo
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-08-2006
    Posts
    68
    Rylo,
    This is something that I would like to do as well. How would i go upon allowing that macro to paste the date and the time?

    My dream would be to have a public file that users can have open and see when the users are online and when they click to punch out it saves it to a file so our supervisors can see what everyone is doing as a whole team.

    Thanks
    Nate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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