Link to home
Start Free TrialLog in
Avatar of mrherndon
mrherndon

asked on

Excel Coding: Automatic Datestamp, Field and Row Advance

Hi.  I'd like a little help with coding an Excel sheet.

I would like that when data is entered into the first cell (A1), the timestamp of entry automatically appears in B1 and cursor advances to C1 for next input.

When data is entered to C1, I would like the sheet to advance to the next row and begin the process over again with cursor awaiting input in A2.
Avatar of aikimark
aikimark
Flag of United States of America image

Code something like the following into the Sheetchange event at either the worksheets or workbook objects.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    If Target.Column = 1 Then
        Target.Offset(0, 1).Value = Now
    End If
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Zack Barresse
Zack Barresse
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrherndon
mrherndon

ASKER

Thanks very much.  EXACTLY what I was looking for.