This one's a little complex but I feel there might be a simple way to do it.
If a cell in a column is changed, I am looking to find the row containing that modified cell and copy a cell from another sheet to a different column in that row.
Currently my code will copy the cell from another sheet on a change in the column but paste it into a cell upon mouse click. I am looking for it to automatically paste into a named column (H).
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 6 And (Target.Row >= 1 And Target.Row <= 10000) Then
Sheets("Sheet2").Range("B2:B2").Copy
End If
Dim lastRow As Long
With ActiveSheet
Sheets("Sheet1").Activate
lastRow = .Cells(.Rows.Count, "F").End(xlUp).Row
Selection.PasteSpecial xlPasteValues
End With
End Sub