need a code to run macro if cell value is changed

srinayana

Board Regular
Joined
Dec 22, 2008
Messages
84
Hi, I need a macro to run a piece of code which is already written. I have a cell IV1 a with a sum formula. When ever the total in IV1 changes then i want macro to run. I dont even want to touch cell IV1. I tried Worksheet-Change event, but it works only when i access the cell IV1 , It will not work when value is changed in IV1 when i not access that cell. Kindly help me.

Regards,
Srinayana
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

GTO

MrExcel MVP
Joined
Dec 9, 2008
Messages
6,155
Look at the Worksheet_Calculate event. This fires when a calculation is made. To have the code run only when the particular cell's return has changed, you would want to store the return val and check against it.
 

Forum statistics

Threads
1,176,401
Messages
5,902,843
Members
435,000
Latest member
jmc12

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top