Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
Make sure you put it in Worksheet code.
Make sure it only examines a cell on that sheet, not ActiveCell -- Gary's Student gsnu200703 "scrimmy" wrote: 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? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
Thanks for the help!! It now works the way I wanted it to.
"Gary''s Student" wrote: Make sure you put it in Worksheet code. Make sure it only examines a cell on that sheet, not ActiveCell -- Gary's Student gsnu200703 "scrimmy" wrote: 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? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
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" "Gary''s Student" wrote: Make sure you put it in Worksheet code. Make sure it only examines a cell on that sheet, not ActiveCell -- Gary's Student gsnu200703 "scrimmy" wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Worksheet_Change | Excel Programming | |||
Worksheet_Change | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming |