我有一个代码,如下:
Public Sub Match()
ThisWorkbook.Sheets("Sheet1").Activate
Range("Data!H8") = Application.Sum(Application.Index(Range("A:GH"), 0, Application.Match("ORDERS" & "Country", Range("B2:B100") & Range("A2:GH2"), 0)))
End Sub
当我运行此代码时,我收到错误“Type Mismatch”。任何人都可以帮我吗? enter image description here