Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to detect if there is change in any cell vlaue in a worksheet?


Hi!

I know worksheet_change can dectec that a change in a worksheet. But in
my case if I change a cell from 20 to 20, it should not be a change
because they are the same value. Can I know how I detect a real change
in cell value in a worksheet? That is how do I detect there is a change
in any cell in a worksheet that the new value is different from the
previous value?

Please advise.

Aijun.


--
Ai_Jun_Zhang
------------------------------------------------------------------------
Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...o&userid=25474
View this thread: http://www.excelforum.com/showthread...hreadid=468914

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default How to detect if there is change in any cell vlaue in a worksheet?

You can use the selection change and sheet activate events to capture the
value of the active cell when the sheet is first accessed or the acitve cell
is changed. Store this value in a global variable and compare it to the value
of the changed cell to determine if the value really changed.
--
HTH...

Jim Thomlinson


"Ai_Jun_Zhang" wrote:


Hi!

I know worksheet_change can dectec that a change in a worksheet. But in
my case if I change a cell from 20 to 20, it should not be a change
because they are the same value. Can I know how I detect a real change
in cell value in a worksheet? That is how do I detect there is a change
in any cell in a worksheet that the new value is different from the
previous value?

Please advise.

Aijun.


--
Ai_Jun_Zhang
------------------------------------------------------------------------
Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...o&userid=25474
View this thread: http://www.excelforum.com/showthread...hreadid=468914


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to detect if there is change in any cell vlaue in a worksheet?


Thanks, Jim.

I will give a try following your advise.

Thanks,

Aijun

--
Ai_Jun_Zhan
-----------------------------------------------------------------------
Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...fo&userid=2547
View this thread: http://www.excelforum.com/showthread.php?threadid=46891

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
Autofill: can it detect change in value? Margie Excel Discussion (Misc queries) 3 December 9th 09 05:49 PM
Is there a VBA Event to Detect Change in ActiveCell Focus? Larry A[_3_] Excel Programming 4 September 16th 05 03:23 AM
detect cell change diepenbos Excel Programming 1 August 18th 05 02:49 AM
Detect Value change of a Cell Stone[_3_] Excel Programming 2 August 9th 05 09:19 PM
detect worksheet mike allen Excel Programming 2 October 28th 03 10:33 PM


All times are GMT +1. The time now is 02:59 PM.

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

About Us

"It's about Microsoft Excel"