Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to Run VBA Code on cell or range change

Near the top of your code:

if target.cells.count 1 then exit sub
if intersect(target,me.range("b99")) is nothing then exit sub

And remember to turn off events if you're changing something (and don't want
that to cause the event to run again).

MikeZz wrote:

I want to run some code whenever someone changes a value in a particular cell
or range. I know how to do it on Worksheet_Change but don't want to have it
actually run code (slowing response down) every time any cell changes.

Is there a way to do this?

Thanks,
MikeZz


--

Dave Peterson
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
Code for a button to change cell location Michael B Excel Discussion (Misc queries) 1 November 30th 07 04:30 PM
How to Run VBA Code on cell or range change Bob Phillips Excel Programming 2 December 10th 06 06:50 PM
Change cell colour for a cell or range within a predefined range Martin[_21_] Excel Programming 2 May 23rd 05 06:16 PM
Problem with Running VBA code on Cell Change Marty Excel Programming 8 January 18th 05 04:01 AM
run code after cell contents change Brian Excel Programming 0 September 5th 03 08:37 PM


All times are GMT +1. The time now is 06:33 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"