Try this. In ThisWorkbook,
Const sRng As String = "B14:B2000"
Private Sub Workbook_Open()
IterationOnOff Sheet1.Range(sRng), True
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
IterationOnOff Sheet1.Range(sRng), False
End Sub
... replacing Sheet1 with the CodeName of the sheet of interest.
In a code module,
Sub IterationOnOff(r As Range, bOn As Boolean)
With r
If bOn Then
Application.Iteration = True
Application.MaxIterations = 1
.NumberFormat = "General"
.Formula = .Value
Else
.NumberFormat = "@"
.Value = .Formula
Application.Iteration = False
End If
End With
End Sub
Bookmarks