意思是
Sub test()'这里想实现,改一下区域,改一下单次运算的函数名称(比如:函数1 改为 函数2 )
循环调用函数 Selection, "函数1"
End Sub
Function 循环调用函数(Rng As Range, 单次运算的函数名)'由这个函数把那些单次运算的函数变成循环多次的
For Each i In Rng.Value
xx = Application.Run(单次运算的函数名 & "(""" & i & """)")
Debug.Print xx
Next
End Function
Function 函数1(x)
Debug.Print x
函数1 = Now
End Function
Function 函数2(x)
Debug.Print x
函数2 = Now
End Function
.......
等等N个函数