pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi,
Happy Friday
I think i need some help here. I have this code which I dont know how to make it work.Hilighted region is where i'm getting error..
Please modify whi
Happy Friday

I think i need some help here. I have this code which I dont know how to make it work.Hilighted region is where i'm getting error..
Please modify whi
Code:
Sub DT_try()
d1 = Range("A" & Rows.Count).End(xlUp).Value
d2 = Date & " " & Time
'd3 = d2-d1
'if d3 < "1:00:00" Then
Range("B5").Value = d1
Range("B6").Value = d2
[COLOR=yellowgreen] If d2 - d1 < "1:00:00" Then[/COLOR]
MsgBox "<"
Else
MsgBox ">"
End If
End Sub