SQUIDD
Well-known Member
- Joined
- Jan 2, 2009
- Messages
- 2,104
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi All
I have tried to research this, but not found anything to work completly.
I want to clear some cells if a cells value changes, but the cells value is the result of a formula.
Posted below is what i have tried, but i get "out of stack space", so guess im looping continuesly.
im guessing actually the sheet caluclates again when i set it to 0??
thanks dave
I have tried to research this, but not found anything to work completly.
I want to clear some cells if a cells value changes, but the cells value is the result of a formula.
Posted below is what i have tried, but i get "out of stack space", so guess im looping continuesly.
im guessing actually the sheet caluclates again when i set it to 0??
VBA Code:
Private Sub Worksheet_Calculate()
If Range("C38") = 1 Then
Range("C28") = ""
Range("E28:E33") = ""
Range("C38") = 0
End If
End Sub
thanks dave