want J1 to reflect the value of a:2:a500 as the cursor enters the

  • Thread starter Thread starter Gordy99
  • Start date Start date
G

Gordy99

want J1 to reflect the value of a:2:a500 as the cursor enters the row
But how?
 
Right click on the sheet tab that you want to react to the change in cursor
location and select view code. Paste the following code...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row >= 2 And Target.Row <= 500 Then
Range("J1").Value = Cells(Target.Row, "A").Value
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top