Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need a macro to alert me when the value of a formula in another sheet changes

Hi,

I'm working on a complex spreadsheet with many sheets and need to
know
if something I do in any sheet causes a particular cell value in the
first sheet to change.


I've played around with onevent macros but they seem to be triggered
only if a cell changes content rather than changing value. ie. a cell
is deleted or overkeyed, rather than a formula just giving a
different
value.


Can anyone assist with the code I need to do this?


Many thanks and Merry Christmas to all.


Kind regards,


Ana

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Need a macro to alert me when the value of a formula in another sheet changes

On Wed, 22 Dec 2010 21:08:15 -0800 (PST), Ana
wrote:

Hi,

I'm working on a complex spreadsheet with many sheets and need to
know
if something I do in any sheet causes a particular cell value in the
first sheet to change.


I've played around with onevent macros but they seem to be triggered
only if a cell changes content rather than changing value. ie. a cell
is deleted or overkeyed, rather than a formula just giving a
different
value.


Can anyone assist with the code I need to do this?



You need a combination of events. First, you put some code into a
Workbook Open event which saves the initial value of the cell you want
to monitor.

Then, in a workbook change event you compare the new value to the
stored value. If it changes, you can notify yourself with a message
box or by changing the status bar. Finally, you store the new value
in the variable which initially held the original value.

Here's an example: http://excel.bigresource.com/Track/excel-UvyDmjWJ/


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
can a work sheet have an alert to calendar Carl R[_2_] Excel Discussion (Misc queries) 5 December 1st 08 04:03 PM
How to Create Sound Alert and Email Alert when Macro is Finish Tom Ogilvy Excel Programming 0 November 30th 06 11:12 PM
How to Create Sound Alert and Email Alert when Macro is Finish Bob Phillips Excel Programming 0 November 30th 06 09:21 PM
How to Create Sound Alert and Email Alert when Macro is Finished Bob Davison Excel Programming 0 November 30th 06 08:14 PM
How to delete a sheet without Alert message kvenku[_38_] Excel Programming 2 July 19th 06 02:15 PM


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