user changes sheet1 - have the macro xyz run on sheet3

T

tegger

How do I do this?

Whenever the user changes anything on sheet1 to have the macro xyz run on
sheet3.
 
B

Bob Phillips

Tegger,

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

XYZ


End Sub

Put this in the worksheet cod module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

steve

Bob,

This won't catch formatting changes or editing in cell (without moving to
next cell). And there are a few other things that won't trigger the event.

The question was "anything" and I don't have an answer to that!
 
B

Bob Phillips

Steve,

I actually meant Worksheet_Change not Worksheet_selectionnChange. I also
never read anything as you did, I read it as any cell. I winder what he
actually means?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

steve

Bob,

Yep! Happens to us all (especially me).
But following this group is teaching me to watch all the nuances of the
question. And it sounds like he might be looking to track any messing
around along with standard changes. But I could be wrong.

Like you said "I winder what he actually means?"
 

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

Top