Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default check to see if the value is changed ...

Hi Guys,

I need to run a module every time the value of a range in a worksheet is
changed.
can you please show me a simple example?

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default check to see if the value is changed ...

Here are a few
http://groups.google.com/groups?as_d...=&as_uauthors=

or tiny url

http://tinyurl.com/tfrr6

--
Don Guillett
SalesAid Software

"2007-User" wrote in message
...
Hi Guys,

I need to run a module every time the value of a range in a worksheet is
changed.
can you please show me a simple example?

Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default check to see if the value is changed ...

Put this Sub int Worksheet module and change the range to your own
needs. It start a subroutine in another module.


Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("A1:B10")) Is Nothing Then
Call [Name of Subroutine]
End If
End Sub

You don't need to write "Call" but I use to, because it become easier
to see when I call another routine.

Kind reagrds
Tskogstrom


2007-User skrev:

Hi Guys,

I need to run a module every time the value of a range in a worksheet is
changed.
can you please show me a simple example?

Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default check to see if the value is changed ...

- I forgot:

If you ned to check if the value actually has been changed, I use to
have a veryhidden "reference worksheet" with reference values.

When you activate Sheet1 I use Worksheet_Activate event and let
Sheet2.Range("A1").value = Sheet1.Range("A1").value. Then using
Worksheet_Change and Intersect as I just told you, you could check if
the value still is the same.

Regards
/Tskogstrom


2007-User skrev:

Hi Guys,

I need to run a module every time the value of a range in a worksheet is
changed.
can you please show me a simple example?

Thanks.


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
Using Macro, how can I check if an opened workbook was changed ? Macro to check if a workbook has changed Excel Programming 2 August 15th 06 01:10 PM
How can I check if data in an external data range is changed afte. Ruud Excel Worksheet Functions 0 January 7th 05 12:15 PM
How can I check if data in external data range is changed after re Ruud Excel Discussion (Misc queries) 0 January 7th 05 12:07 PM
Check if workbook has been changed Jake Marx[_3_] Excel Programming 0 April 30th 04 06:24 PM
How To: Check if a cell value has changed Kevin McCartney[_2_] Excel Programming 2 November 27th 03 12:51 PM


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