Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Calculate Change

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Calculate Change

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Calculate Change

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
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
calculate percent change sostena romano Excel Discussion (Misc queries) 1 November 7th 11 08:42 PM
Calculate Rate of Change Formula Zee New Users to Excel 6 September 29th 06 06:03 PM
Can you change the PMT function tio calculate off of 365 days? Will Excel Worksheet Functions 1 March 18th 05 07:27 PM
Repost -calculate % change for each phrase. Gwen Excel Worksheet Functions 0 January 3rd 05 05:47 PM
Calculate change over time Gwen Excel Worksheet Functions 0 January 1st 05 05:52 PM


All times are GMT +1. The time now is 06:12 AM.

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"