返回列表 上一主題 發帖

[發問] 判斷自動篩選AutoFilter的問題

回復 3# uf023630
  1. Sub Ex()
  2.     With ActiveSheet
  3.         If Not .AutoFilter Is Nothing Then .UsedRange.AutoFilter
  4.     End With
  5. End Sub
複製代碼

TOP

回復 6# uf023630
AutoFilter 是物件
物件不存在   物件 Is Nothing   
物件存在      Not 物件 Is Nothing

TOP

        靜思自在 : 並非有錢魷是快樂,問心無愧心最安。
返回列表 上一主題