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:
- "You are not logged in. please register or login"
- Orkut login - Guide
- Instagram logged me out - Guide
- Www.instagram.com log in - Guide
- Msn messenger login - Guide
- Gmail login another account - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
552
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