Worksheet_Change

G

Guest

I'm using the Worksheet_Change event procedure to call a macro when a certain
cell in the worksheet changes. It seems to work okay, but if I have another
Workbook open, the macro tries to run in that Workbook also. How do I keep
the macro from trying to run in other workbooks that are open?
 
G

Guest

Make sure you put it in Worksheet code.
Make sure it only examines a cell on that sheet, not ActiveCell
 
G

Guest

Have much the same problem would like when I copy to another worksheet that
this does not run on the sheet copied to. this is in a private sub procedure.
thought this would keep it there. Not in workbook on worksheet
Thanks

Application.OnKey "{RETURN}", "checkUp"
Application.OnKey "{DOWN}", "checkUp"
 

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