Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet_Change ram Excel Programming 8 January 5th 06 11:13 PM
Worksheet_Change Dan Excel Programming 5 November 16th 05 07:37 PM
worksheet_change vs. calculate, and worksheet_change not running Tom Ogilvy Excel Programming 1 July 14th 03 02:51 AM
worksheet_change vs. calculate, and worksheet_change not running Ross[_5_] Excel Programming 0 July 13th 03 04:27 PM


All times are GMT +1. The time now is 04:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"