Hello GusL,
Welcome to the Forum!
Here is macro to take the value of A2 and store it in B2 on down, every time A2 changes.
Private Worksheet_Change(ByVal Target As Range)
Dim NextRow As Long
Application.EnableEvents = False
If Target.Address = "$A$2" Then
NextRow = Cells(Rows.Count, "B").End(XlUp).Row + 1
Cells(NextRow, "B") = Target.Value
End If
Application.EnableEvents = True
End Sub
How to Save a Worksheet Event Macro
1. Copy the macro using CTRL+C keys.
2. Open your Workbook and Right Click on the Worksheet's Name Tab for the Worksheet the macro will run on.
3. Left Click on View Code in the pop up menu.
4. Paste the macro code using CTRL+V
5. Save the macro in your Workbook using CTRL+S
Sincerely,
Leith Ross
Bookmarks