Getting XL to work with only selected range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would only like the Change Event to kick in when i make a change in Cells
J8:BL8.
Programatically how would i write this please?

Thanks

John
 
one way:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Target, Range("J8:BL8")) Is Nothing Then
'Your code here
End If
End Sub
 
Cool, thanks

John

JE McGimpsey said:
one way:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Target, Range("J8:BL8")) Is Nothing Then
'Your code here
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