我需要搜索一大堆id。是否可以更快地搜索列,或将列加载到数组中然后搜索数组?
答案 0 :(得分:0)
这取决于你想要做什么 为什么不花时间看看自己,如:
Sub CheckPerformance()
Dim start
start = Timer
' Code that uses searching like looping, or Range Find Method goes here
Debug.Print (Timer - start) * 1000 ' elapse time in milliseconds
start = Timer
' Code that passes values to array and loops goes here
Debug.Print (Timer - start) * 1000 ' elapse time in milliseconds
End Sub
然后你会找到答案。