Employee punch clock with Employee and order # input

mattayom

New Member
Joined
Jan 30, 2018
Messages
6
I'd like a punch-clock spreadsheet that uses a form control box to input employee # and order #, with time-in and time-out.

Employees can clock on to multiple orders at once, and multiple employees can clock on to the same order.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I'll take one too! :LOL:









no seriously, have you tried to make something. Do you not know where to start?
 
Upvote 0
make a user form
put a box for each item you need; txtEmpNum, txtOrderNum, txtDate
1 combo box to choose IN or OUT.
a button to save.

date field holds both date and time 1/1/18 9:00 am
the button click event will save the record
Code:
public btnSave_click()
  Sheets("Data").select
  FindNextFreeRec
  
  activecell.offset(0,0).value = txtEmpNum 
  activecell.offset(0,1).value = txtOrderNum
  activecell.offset(0,2).value = txtDate
  activecell.offset(0,3).value = cboIO
end sub

Public Sub FindNextFreeRec()
Range("A1").Select
Select Case True
   Case ActiveCell.Value = ""
   Case ActiveCell(1, 0).Value = ""
        NextRow
   Case Else
        FarDown
        NextRow
End Select
End Sub


Private Sub NextRow()
ActiveCell.Offset(1, 0).Select
End Sub


Sub FarDown()
    Selection.End(xlDown).Select
End Sub
 
Last edited:
Upvote 0
make a user form
put a box for each item you need; txtEmpNum, txtOrderNum, txtDate
1 combo box to choose IN or OUT.
a button to save.

date field holds both date and time 1/1/18 9:00 am
the button click event will save the record
Code:
public btnSave_click()
  Sheets("Data").select
  FindNextFreeRec
  
  activecell.offset(0,0).value = txtEmpNum 
  activecell.offset(0,1).value = txtOrderNum
  activecell.offset(0,2).value = txtDate
  activecell.offset(0,3).value = cboIO
end sub

Public Sub FindNextFreeRec()
Range("A1").Select
Select Case True
   Case ActiveCell.Value = ""
   Case ActiveCell(1, 0).Value = ""
        NextRow
   Case Else
        FarDown
        NextRow
End Select
End Sub


Private Sub NextRow()
ActiveCell.Offset(1, 0).Select
End Sub


Sub FarDown()
    Selection.End(xlDown).Select
End Sub

ranman256 thanks for that, but that just enters a new line every time. Is there a way to verify what the employee is clocking onto is right? So if someone is already clocked into an order and they try to clock in, it throws an error instead of having two clock-in entries without the first one clocked out?
 
Upvote 0

Forum statistics

Threads
1,215,786
Messages
6,126,893
Members
449,347
Latest member
Macro_learner

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top