spurs
Active Member
- Joined
- Oct 18, 2006
- Messages
- 479
- Office Version
- 2016
- 2013
- 2010
- 2007
- 2003 or older
- Platform
- Windows
I want to initiate a macro only when an entry is made to the cell M8
In my workbook object I have the following code which runs the macro "Every_Update" each time an entry is made in the worksheet "Sheet1" This works fine.
Worksheets("Sheet1").OnEntry = "Every_Update"
I want to further refine triggering other macros to run
Currently in the Subroutine "Every_Update" I have the following code
Call Analytical_tol
which runs every time an entry is made in "Sheet1"
To safe calculation time, I want to limit "Analytical_tol to run only when and entry is made in cell M8 of Sheet 1
How can i modify the Call Analytical_to line to limit it running only when an entry is made in "M8"
As a 2nd question
In the same workbook i have a chart on a worksheet named "Plot"
At the moment in the "Every Update" subroutine i have a line
Call PlotMaxMC
which controls the recalculation of the data feeding the chart "Plot"
Of course this is happening with every entry on "Sheett1"
This is time consuming and I really only want the subroutine PlotMaxMC to run when i move off of worksheet "Sheet1" or alternatively if i click onto worksheet "Plot"
Of course i want it to run before saving and closing the workbook as well or upon opening
any idea on how to do this?
In my workbook object I have the following code which runs the macro "Every_Update" each time an entry is made in the worksheet "Sheet1" This works fine.
Worksheets("Sheet1").OnEntry = "Every_Update"
I want to further refine triggering other macros to run
Currently in the Subroutine "Every_Update" I have the following code
Call Analytical_tol
which runs every time an entry is made in "Sheet1"
To safe calculation time, I want to limit "Analytical_tol to run only when and entry is made in cell M8 of Sheet 1
How can i modify the Call Analytical_to line to limit it running only when an entry is made in "M8"
As a 2nd question
In the same workbook i have a chart on a worksheet named "Plot"
At the moment in the "Every Update" subroutine i have a line
Call PlotMaxMC
which controls the recalculation of the data feeding the chart "Plot"
Of course this is happening with every entry on "Sheett1"
This is time consuming and I really only want the subroutine PlotMaxMC to run when i move off of worksheet "Sheet1" or alternatively if i click onto worksheet "Plot"
Of course i want it to run before saving and closing the workbook as well or upon opening
any idea on how to do this?