I could get xl to do that if I used a volatile function (=rand(), =indirect())
in a cell. It looks like excel will recalculate that worksheet whenever there's
a change to any worksheet.
I don't know a way around it, but xl2002 did crash when I was experimenting.
(Save your work often, just in case.)
In xl2002, you can turn off calculation at the worksheet level.
You could add a couple of lines to stop calculation when you leave the sheet
(and stay in the same workbook):
Under the sheet module:
Option Explicit
Private Sub Worksheet_Activate()
Me.EnableCalculation = True
End Sub
Private Sub Worksheet_Deactivate()
Me.EnableCalculation = False
End Sub
Under the ThisWorkbook module:
Option Explicit
Private Sub Workbook_Activate()
With ActiveSheet
If LCase(.Name) = "sheet1" Then
Worksheets(.Name).EnableCalculation = True
End If
End With
End Sub
Private Sub Worksheet_Deactivate()
Worksheets("sheet1").EnableCalculation = False
End Sub
This'll stop it when you change workbooks.
(I don't have a suggestion for versions below xl2002.)
You may find something at Charles Williams' site:
http://www.decisionmodels.com
rob said:
Terrific!
Thanks Dave. I had tried that before but only using the
"Application.ScreenUpdating = False" line, which didn't work at the time,
but now it does. Didn't realise I had to reset it to true.
BUT....
The problem still exists that when that file with this procedure is open,
any other file open at the same time seems to go to this procedure somehow
each time I edit any cell in the second file. It doesn't flash back and
forth any more, but there is definately a short time delay. (only a split
second, but I can't understand how the other file without the procedure
should be affected.
Rob