Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
calculate percent change | Excel Discussion (Misc queries) | |||
Calculate Rate of Change Formula | New Users to Excel | |||
Can you change the PMT function tio calculate off of 365 days? | Excel Worksheet Functions | |||
Repost -calculate % change for each phrase. | Excel Worksheet Functions | |||
Calculate change over time | Excel Worksheet Functions |