I have an Excel sheet with a formula that's only evaluated when the cell it's in is double-clicked. I have been trying to write some code in the open workbook event that triggers a double-click or VBA equivalent of a double-click to force an evaluation of this cell's formula but can't find anything that works. I've tried:
Application.Evaluate("I2")
^ Does nothing
With Range("I2")
.Value = .Value
End With
^Also does nothing
Dim doubleClick As Variant
doubleClick = Application.WorksheetFunction.DfsCell("TimeSeries", 7.27, Chr(34) & "IRESS_UPDATE!$B$5:$B$36" & Chr(34), 2, , , , , , Chr(34) & "IRESS_UPDATE!$A$2" & Chr(34), Chr(34) & "IRESS_UPDATE!$B$2" & Chr(34), True, 0, False, True, "10:00:00", "16:00:00", 5, "0*5")
^Gives a Run-time error '438': Object doesn't support this property or method
Does anyone know how to simulate a double-click on a cell?