Run code after entry

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

Guest

What type of code should I use if I want to keep an eye on any entry changes
made in Sheet1.Range("A1") without activating code manually?

I think im looking for something like:

Sub Sheet1.Range("A1")_Change
'my code checking the contents of Sheet1.Range("A1")
End Sub sub

Thanks
The Doctor
 
try this


Code:
--------------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("A1")) Is Nothing Then
MsgBox "Put your code here!"
End If
End Sub
 
There is an in-built event to trap this in each worksheet
object :

Look for :

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

End Sub

in Sheet1 object

Rgds

Rog
 

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