"Worksheet Change" Question

  • Thread starter Thread starter documike
  • Start date Start date
D

documike

I am using the following code to run a macro if the data
in this cell (E26) is changed. I want another cell on
the same worksheet to do the same thing. (E28). I tried
adding another "worksheet change" but it didn't like it,
evidently you can only have one per sheet. How do I add
the other cell into the mix? Thanks

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("E26")) Is Nothing Then
Sheets("Entry").Select
Application.Run "CopyFilterData5"
End If
End Sub
 
Mike,

Try this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("E26,E28")) Is Nothing Then
Sheets("Entry").Select
Application.Run "CopyFilterData5"
End If
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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