我试图使用Application.Match
但是它返回一个type mismatch error:13
错误。为什么?Application.Match给出类型不匹配
Dim mySrs as Series
Dim ws as Worksheet
set ws Activesheet
For Each mySrs in ActiveChart.SeriesCollection
tempvar = mySrs.Name
y = Application.Match(tempvar, ws.Range("P37:P71"), 0)
MsgBox y
为什么不使用'Range.Find()'方法? – Chrismas007 2014-12-04 19:57:41
显然,查找通常比匹配更慢:[fastexcel.wordpress.com](https://fastexcel.wordpress.com/2011/10/26/match-vs-find-vs-variant-array-vba-performance-枪战/) – Egalth 2017-06-15 18:13:29