使用以下代码对其进行了测试:
Public Sub test()
Dim dt1 As Date
dt1 = DateSerial(2012, 9, 1)
Dim r0 As Range
Set r0 = Tabelle1.Range("A1:C23")
'r0.Columns(3).AutoFilter
r0.Columns(3).AutoFilter field:=1, Criteria1:=dt1, VisibleDropDown:=False
End Sub
在这个数据上:
HeaderA | HeaderB| HeaderC
stuff | stuff | 01.09.2012
stuff | stuff | 01.09.2012
stuff | stuff | 02.09.2012
stuff | stuff | 04.04.2012
stuff | stuff | 01.02.2012
stuff | stuff | 07.09.2012
stuff | stuff | 01.09.2012
stuff | stuff | 08.10.2012
stuff | stuff | 01.09.2012
stuff | stuff | 01.09.2012
工作得很好。