I'm trying to learn how to loop through named ranges quicker, potentially by calculating off-sheet, since I understand that going to cell references on sheets is very slow. Here's a snippet of the code I'm trying to re-write - any advice on 1) how to "update" the call before the loop and 2) how to efficiently re-do the loop is appreciated
Sub test()
Application.Goto Reference:="namedcell0"
ActiveCell.Formula = "0"
For Each c in Range("named_range1")
Application.Goto Reference:="namedcell1"
ActiveCell.FormulaR1C1 = c
Calculate
For Each d in Range("named_range2")
Application.Goto Reference:="namedcell2"
ActiveCell.FormulaR1C1 = d
Calculate
Next
Next
End Sub