我得到一個「無法獲取WorksheetFunction類的COUNTIF屬性」使用此代碼「無法獲取WorksheetFunction類的COUNTIF財產」的錯誤
Windows("usertemp.xls").Activate
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AO$18695").AutoFilter Field:=14, Criteria1:=Array(_
"28", "BE", "CH", "DE", "FR", "JP", "NL"), Operator:=xlFilterValues
Dim Impats As Integer
Impats = Application.WorksheetFunction.CountIf(Range("AL:AL").SpecialCells(xlCellTypeVisible), "I")
MsgBox Impats
#FunFacts:'WorksheetFunction.CountIf'不是一個屬性 - 該錯誤信息是混亂的! –