标签: excel vba
是否有任何代码可更新命名范围内的值?每当我运行代码时,我都希望这样做。
我知道您可以遍历命名范围,但是如何更新/刷新它们?
Sub NamedRange_Loop() Dim nm As Name 'Loop through each named range in workbook For Each nm In ActiveWorkbook.Names Debug.Print nm.Name, nm.RefersTo Next nm End Sub