PC Review


Reply
Thread Tools Rate Thread

check to see if the value is changed ...

 
 
2007-User
Guest
Posts: n/a
 
      25th Nov 2006
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 With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      25th Nov 2006
Here are a few
http://groups.google.com/groups?as_d...=&as_uauthors=

or tiny url

http://tinyurl.com/tfrr6

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"2007-User" <no-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 With Quote
 
tskogstrom
Guest
Posts: n/a
 
      26th Nov 2006
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.


 
Reply With Quote
 
tskogstrom
Guest
Posts: n/a
 
      26th Nov 2006
- 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I check by VBA if a presentation is changed PeterS Microsoft Powerpoint 1 16th Jan 2008 04:12 PM
Check if DB table has changed mike Microsoft ASP .NET 3 13th May 2004 08:18 PM
How To: Check if a cell value has changed Kevin McCartney Microsoft Excel Programming 2 27th Nov 2003 12:51 PM
Check to see if a field has changed Tony Microsoft Access Form Coding 4 23rd Oct 2003 05:06 PM
Check box changed event Rob Oldfield Microsoft Dot NET Framework Forms 3 14th Aug 2003 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:42 AM.