Ratigan1970
New Member
- Joined
- Jan 22, 2024
- Messages
- 7
- Office Version
- 2010
- Platform
- Windows
hello everyone in Excel land
im no pro at vba so ive come here to pick your brains
im making a clockin program in excel. it all works but the problem i have is you can clock in again after clocking in
so i thought id put a second IF or something to stop people clocking in again my mistake
im no pro at vba so ive come here to pick your brains
im making a clockin program in excel. it all works but the problem i have is you can clock in again after clocking in
so i thought id put a second IF or something to stop people clocking in again my mistake
VBA Code:
If Range("B2:AW32").Find(Range("A5")) Is Nothing Then
MsgBox "Value not found"
Else
Range("A7").Select
Dim k As Date
k = Now
ActiveCell.FormulaR1C1 = Format(k, "HH:MM")
Range("A7").Select
Selection.Copy
Range("B2:AW32").Find(Range("A5")).Offset(0, 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False