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

Date Time Stamp for Specific Column

$
0
0
Looking for code that auto updates today's date in column C, when cells in either column a or b of the same row are edited or changed. I have never used VBA before, just browsing forums for something that might work. I think I'm close with this one, but maybe the offset is wrong - it populates the date in column b when a change.

Code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("a:b")) Is Nothing Then
    Target.Offset(0, 1) = Date
End If
End Sub

Any idea? Thanks so much in advance.

Viewing all articles
Browse latest Browse all 49948

Trending Articles