So I have Sheet1 and Sheet2, Sheet1 is user set settings and Sheet2 is a table of values generated by different values in Sheet1. Now Sheet3..10 can be created, which will pull a value from Sheet2 based on calculations on it.
The problem I'm running in to is when say Sheet3!H20 is updated from Sheet2!I15, how do I get Sheet3!H20 to have =VALUE instead of =Sheet2!I15 so that Sheet4..10 can reuse this table?
I have tried Workbook_SheetCalculate(ByVal Sh As Object)
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
Select Case Sh.Name
Case "Sheet1"
Case "Sheet2"
Case Else
ThisWorkbook.Worksheets("Sheet2").Range("$C$14").Value = "=" & Sh.Range("$D$23").Value
Sh.Range("$H$20").Value = "=" & ThisWorkbook.Worksheets("Sheet2").Range("$I$15").Value
End Select
End Sub
But when I do this, it just recalculates constantly and eventually Excel crashes. I have also tried going in to each worksheet with Worksheet_Calculate and when I do that I get a runtime error for Range is not in the Worksheet object.
And ideas?