Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49892

Environ conditional

$
0
0
Hi,

I'm using the following code to bring username & date/time stamp - is it possible that if the date doesn't match with cell B6 then it automatically turns Red or circle etc to indicate

Code:

Private Sub Worksheet_Change(ByVal Target As Range)


If Not Intersect(Target, Range("b7:b46")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Cells(Target.Row, "c").Value = Environ("username") & ", " & Format(Now, "dd.mm_hh.mm")
End If

THank you

Viewing all articles
Browse latest Browse all 49892

Trending Articles