jmw
Industrial
- Jun 27, 2001
- 7,435
I have a problem (Excel 2002) which isn't[/1] solved by setting calculation to automatic.
I already have calculation set to automatic.
On the user sheet, in some results cells, the results are calculated in one cell and copied to the result cell using the change value code.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("AC17").Value = 1 Then
Range("J11") = Range("AD11")
End If
My problem is that for some of the cells controlled by this change value function, the value in the source cell may change (e.g. AD11 may change) but C17 does not change.
C17 is the result of just one combo box which determines which cell values should be copied to which other cells.
The other combo coxes control which results are displayed in the source cells.
One of a number of such may cause the value in AD11 to change.
So even though the value in AD11 changes, the value in J11 doesn't change - unless I do something else such as tabbing into a new cell.
I need that as AD11 updates, so too does J11 without some other action being necessary.
I can use a cell which sums all the target cell values as a trigger, but how?
Or is there a way I can force the change any time the value in any of the source cells change simply by monitoring the source cell?
JMW
I already have calculation set to automatic.
On the user sheet, in some results cells, the results are calculated in one cell and copied to the result cell using the change value code.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("AC17").Value = 1 Then
Range("J11") = Range("AD11")
End If
My problem is that for some of the cells controlled by this change value function, the value in the source cell may change (e.g. AD11 may change) but C17 does not change.
C17 is the result of just one combo box which determines which cell values should be copied to which other cells.
The other combo coxes control which results are displayed in the source cells.
One of a number of such may cause the value in AD11 to change.
So even though the value in AD11 changes, the value in J11 doesn't change - unless I do something else such as tabbing into a new cell.
I need that as AD11 updates, so too does J11 without some other action being necessary.
I can use a cell which sums all the target cell values as a trigger, but how?
Or is there a way I can force the change any time the value in any of the source cells change simply by monitoring the source cell?
JMW