A lightweight attendance system in a single workbook. Employees check in via a UserForm, the log rolls up to a monthly summary, and PTO days are debited automatically.
Syntax-highlighted VBA — first 14 lines unlocked. Upgrade to view the full project.
1Option Explicit23' Attendance Tracker — daily check-in with per-employee summary and4' automatic PTO deduction.56Public Sub CheckIn()7 Dim ws As Worksheet, employee As String, today As Date8 today = Date9 employee = Application.InputBox("Employee ID:", Type:=2)10 If employee = "False" Or Len(employee) = 0 Then Exit Sub1112 Set ws = ThisWorkbook.Worksheets("Log")13 With ws.Cells(ws.Rows.Count, "A").End(xlUp).Offset(1)14 .Value = today15 .Offset(0, 1).Value = employee16 .Offset(0, 2).Value = Time17 .Offset(0, 3).Value = "Present"18 End With1920 Call UpdateMonthlySummary(employee, today)21End Sub2223Public Sub ApplyPTO(employee As String, days As Double)24 Dim ws As Worksheet25 Set ws = ThisWorkbook.Worksheets("PTO")26 Dim r As Range27 Set r = ws.Range("A:A").Find(What:=employee, LookAt:=xlWhole)28 If r Is Nothing Then Err.Raise 5, , "Unknown employee: " & employee29 r.Offset(0, 2).Value = r.Offset(0, 2).Value - days30End Sub
Unlock XLFormula AI Pro to view the complete project source, download the .xlsm workbook, and generate custom VBA with AI.
Unlock with ProEvery download, every VBA project, every future release for $5.00/month.
Refresh every PivotTable and chart, then export a snapshot PNG for the daily report.
Categorise transactions, roll up totals, and refresh a live budget dashboard with one macro.
Mail-merge personalised emails with per-row attachments, rate limiting, and delivery logging.