PC Review


Reply
Thread Tools Rate Thread

Calculate Change

 
 
Macro not running as intended
Guest
Posts: n/a
 
      17th Oct 2008
I am trying to run a macro that will fire after a cell is calculated and
reaches a certain level. Where can I look for assistance in writing this
code? I'm pretty new to this and not really sure where to begin.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      17th Oct 2008
Hi,

Use the worksheet_calculate event

Private Sub Worksheet_Calculate()
If Range("A1").Value >= 999 Then
'Do all manner of things in VB
End If
End Sub

Mike

"Macro not running as intended" wrote:

> I am trying to run a macro that will fire after a cell is calculated and
> reaches a certain level. Where can I look for assistance in writing this
> code? I'm pretty new to this and not really sure where to begin.

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      17th Oct 2008
You can use a calculate event wehich occurs every time a worksheet is
reculated

Private Sub Worksheet_Calculate()

If Range("C4").Value >= 10 Then
'enter your code here
End If

End Sub

Add code to the VBA sheet corresponding to the cell which you are
monitoring. don't use a VBA module sheet.

"Macro not running as intended" wrote:

> I am trying to run a macro that will fire after a cell is calculated and
> reaches a certain level. Where can I look for assistance in writing this
> code? I'm pretty new to this and not really sure where to begin.

 
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
=9/10 does not calculate --- did I change an option? jkk251 Microsoft Excel Discussion 1 20th Jul 2009 07:12 PM
=9/10 does not calculate --- did I change an option? jkk251 Microsoft Excel Discussion 2 20th Jul 2009 05:30 PM
Calculate difference or Change between records Barry A&P Microsoft Access Reports 2 9th Mar 2009 09:39 PM
Trying to calculate the change from a value in one row from anothe =?Utf-8?B?QnVydG9uIEhlc3M=?= Microsoft Access VBA Modules 9 2nd Nov 2005 08:54 PM
Calculate change over time Gwen Microsoft Excel Worksheet Functions 0 1st Jan 2005 05:52 PM


Features
 

Advertising
 

Newsgroups
 


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