so this is a general question, Im sure this has been asked before, but i cant find much help.
In Excel having a range in a worksheet say B6:F12 that are all the results of calculations I am having a problem with the Worksheet_Calculate() subroutine
my problem is that with this VERY generalized code for the worksheet_calculate subroutine
Private Sub Worksheet_Calculate()
Dim aCell as Range
Dim aRange as Range
Set aRange = Range(B6:B12)
For Each aCell in aRange
SomeFunction(aCell)
Next
End Sub
any calculation that happens in the Range C6:F12 causes the iteration through aRange to happen and unneeded calls to SomeFunction(aCell).
How can I make this scenario only happen when there is a calculation performed on the range B6:B12 ?