I'm creating yearly budgets. When a user clicks "Create New Budget" this loop runs to determine the most recent budget year for that area.
The loop executes but receives a "Not responding" error for a few seconds before it finishes.
For i = 2 To Rows.Count
cellYearRaw = Sheets("Budgets").Cells(i, "A").Value
cellYear = CInt(cellYearRaw)
cellAreaKey = Sheets("Budgets").Cells(i, "H").Value
If cellYear > year And cellAreaKey = areaKey Then
year = cellYear
End If
Next i