UDF for Attendance register
Solved/Closed
slinger42
Posts
2
Registration date
Sunday October 30, 2022
Status
Member
Last seen
October 31, 2022
-
Oct 30, 2022 at 12:37 PM
Slinger42 - Nov 3, 2022 at 09:48 PM
Slinger42 - Nov 3, 2022 at 09:48 PM
Related:
- Mdates iskustva
- Yahoo mail register - Guide
- Mjreg.com register - Guide
- Skype register - Guide
- Snapchat register - Guide
- Register unemployed - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
January 16, 2023
549
Nov 3, 2022 at 12:39 PM
Nov 3, 2022 at 12:39 PM
Hi Slinger,
For that you will need to add the extra conditions to code line 4:
Function LastAttendanceDate(mDates, mTimes As Range) Dim mCol As Integer For Each cell In mTimes If cell.Value <> vbNullString And cell.Value <> "O" And cell.Value <> "W" Then mCol = cell.Column End If Next cell LastAttendanceDate = Cells(mDates.Row, mCol) End Function
Best regards,
Trowa